未验证 提交 d998ed0c 编写于 作者: F furnace 提交者: GitHub

bugfix for docs of paddle.nn.Assign API (#27927)

上级 338c7656
......@@ -51,7 +51,7 @@ class Assign(NumpyArrayInitializer):
# linear_1.weight: [2. 2.]
# linear_1.bias: [2.]
res_1 = linear(data_1)
res_1 = linear_1(data_1)
# res_1: [6.]
# python list
......@@ -66,7 +66,7 @@ class Assign(NumpyArrayInitializer):
# linear_2.weight: [2. 2.]
# linear_2.bias: [2.]
res_2 = linear(data_2)
res_2 = linear_2(data_2)
# res_2: [6.]
# tensor
......@@ -81,7 +81,7 @@ class Assign(NumpyArrayInitializer):
# linear_3.weight: [2. 2.]
# linear_3.bias: [2.]
res_3 = linear(data_3)
res_3 = linear_3(data_3)
# res_3: [6.]
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册