未验证 提交 31f10d5a 编写于 作者: J Jiabin Yang 提交者: GitHub

refine doc

上级 7dba9ffb
......@@ -111,7 +111,7 @@ PaddlePaddle DyGraph是一个更加灵活易用的模式,可提供:
def __init__(self, name_scope):
super(MyLayer, self).__init__(name_scope)
2. 实现一个`forward(self, *inputs)`的执行函数,该函数将负责执行实际运行时网络的执行逻辑, 该函数将会在每一轮训练/预测中被调用,这里我们将执行一个简单的`relu` -> `elementwise add` -> `reduce sum`:
2. 实现一个`forward(self, *inputs)`的执行函数,该函数将负责执行实际运行时网络的执行逻辑, 该函数将会在每一轮训练/预测中被调用,这里我们将执行一个简单的`relu` -> `elementwise add` -> `reduce sum`:
def forward(self, inputs):
x = fluid.layers.relu(inputs)
......@@ -586,4 +586,4 @@ PaddlePaddle DyGraph是一个更加灵活易用的模式,可提供:
i]
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册