未验证 提交 1cce8992 编写于 作者: D Double_V 提交者: GitHub

fix usage bug of fluid.data (#4629)

* take fluid.layers.data in place of fluid.data
* delete create_var_list_v2 func
* fix usage bug of fluid.data
上级 c2d45238
...@@ -72,10 +72,10 @@ def Fconv2d( ...@@ -72,10 +72,10 @@ def Fconv2d(
groups mismatch. groups mismatch.
Examples: Examples:
.. code-block:: python .. code-block:: python
data = fluid.data(name='data', shape=[3, 32, 32], \ data = fluid.data(name='data', shape=[None, 3, 32, 32], \
dtype='float32') dtype='float32')
filter = fluid.data(name='filter',shape=[10,3,3,3], \ filter = fluid.data(name='filter',shape=[10,3,3,3], \
dtype='float32',append_batch_size=False) dtype='float32')
conv2d = fluid.layers.conv2d(input=data, conv2d = fluid.layers.conv2d(input=data,
filter=filter, filter=filter,
act="relu") act="relu")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册