Skip to content

Commit

Permalink
No.12 Modify paddle.nn.utils.parameters_to_vector's stop_gradient to …
Browse files Browse the repository at this point in the history
…False (PaddlePaddle#56761)

* fix

* fix

* fix

* CI

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix
  • Loading branch information
enkilee authored and jiahy0825 committed Oct 26, 2023
1 parent 9d22cbd commit 806a122
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/paddle/nn/utils/transform_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def parameters_to_vector(parameters, name=None):
)
for i, param in enumerate(parameters):
_inplace_reshape_dygraph(param, origin_shapes[i])
out.stop_gradient = False
return out


Expand Down

0 comments on commit 806a122

Please sign in to comment.