Skip to content

Commit

Permalink
Dev/update ptb (PaddlePaddle#4025)
Browse files Browse the repository at this point in the history
* update ptb model to use auto generated op functions, test=develop

* refine model code, test=develop

* refine model code, test=develop
  • Loading branch information
zhiqiu authored Dec 4, 2019
1 parent 622fdd5 commit 97b6d5c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dygraph/ptb_lm/ptb_dy.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ def forward(self, input, label, init_hidden, init_cell):
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

Expand Down

0 comments on commit 97b6d5c

Please sign in to comment.