Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No.12 Modify paddle.nn.utils.parameters_to_vector's stop_gradient to False #56761

2 changes: 1 addition & 1 deletion python/paddle/nn/utils/transform_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def parameters_to_vector(parameters, name=None):
inputs={'X': parameters},
enkilee marked this conversation as resolved.
Show resolved Hide resolved
outputs={'Out': [out]},
attrs={'axis': 0},
stop_gradient=True,
stop_gradient=False,
enkilee marked this conversation as resolved.
Show resolved Hide resolved
)
for i, param in enumerate(parameters):
_inplace_reshape_dygraph(param, origin_shapes[i])
Expand Down