未验证 提交 97b6d5cf 编写于 作者: L Leo Chen 提交者: GitHub

Dev/update ptb (#4025)

* update ptb model to use auto generated op functions, test=develop

* refine model code, test=develop

* refine model code, test=develop
上级 622fdd51
......@@ -223,7 +223,6 @@ class PtbModel(fluid.Layer):
loss = fluid.layers.reshape(loss, shape=[-1, self.num_steps])
loss = fluid.layers.reduce_mean(loss, dim=[0])
loss = fluid.layers.reduce_sum(loss)
loss.permissions = True
return loss, last_hidden, last_cell
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册