提交 66f5052c 编写于 作者: Y Yu Yang

Change feeding comments.

上级 333cd3d7
...@@ -39,9 +39,8 @@ class DataFeeder(DataProviderConverter): ...@@ -39,9 +39,8 @@ class DataFeeder(DataProviderConverter):
.. code-block:: python .. code-block:: python
data_types = [('image', paddle.data_type.dense_vector(784)),
('label', paddle.data_type.integer_value(10))]
feeding = ['image', 'label'] feeding = ['image', 'label']
data_types = enumerate_data_types_of_data_layers(topology)
feeder = DataFeeder(data_types=data_types, feeding=feeding) feeder = DataFeeder(data_types=data_types, feeding=feeding)
minibatch_data = [([1.0, 2.0, 3.0, ...], 5)] minibatch_data = [([1.0, 2.0, 3.0, ...], 5)]
......
...@@ -81,7 +81,7 @@ class SGD(object): ...@@ -81,7 +81,7 @@ class SGD(object):
:type event_handler: (BaseEvent) => None :type event_handler: (BaseEvent) => None
:param feeding: Feeding is a map of neural network input name and array :param feeding: Feeding is a map of neural network input name and array
index that reader returns. index that reader returns.
:type feeding: dict :type feeding: dict|list
:return: :return:
""" """
if event_handler is None: if event_handler is None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册