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

[Eager] delete final state pre-name #45306

Merged
merged 58 commits into from
Aug 26, 2022
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
be11e2e
sync_batch_norm_backword_yaml
wanghuancoder Aug 17, 2022
954cc4a
norm api use final state
wanghuancoder Aug 17, 2022
cb9efff
adadelta use final state
wanghuancoder Aug 17, 2022
7f9bd47
refine
wanghuancoder Aug 18, 2022
7d08798
adamax use final state
wanghuancoder Aug 18, 2022
0108118
strided_slice use final statue
wanghuancoder Aug 18, 2022
82fea45
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
wanghuancoder Aug 18, 2022
4e023bf
parameters_to_vector vector_to_parameters use final state
wanghuancoder Aug 18, 2022
2b0746b
refine
wanghuancoder Aug 18, 2022
160b43f
refine
wanghuancoder Aug 18, 2022
d300fff
refine
wanghuancoder Aug 18, 2022
b6a2b6b
orthogonal use final state
wanghuancoder Aug 18, 2022
88ee999
refine
wanghuancoder Aug 18, 2022
e9519d3
refine
wanghuancoder Aug 18, 2022
5ab1b87
pad use final state
wanghuancoder Aug 18, 2022
cb78466
size use final statue
wanghuancoder Aug 18, 2022
991f764
loss.py reshape gather_nd use final state
wanghuancoder Aug 19, 2022
42ca81b
some op,use final state
wanghuancoder Aug 19, 2022
3bba1d2
uniform_random use final state
wanghuancoder Aug 19, 2022
1a98e68
Merge branch 'develop' into norm_use_final_state
wanghuancoder Aug 22, 2022
b0d4665
refine
wanghuancoder Aug 22, 2022
5131dbf
Merge branch 'norm_use_final_state' of https://github.com/wanghuancod…
wanghuancoder Aug 22, 2022
6c6b140
refine
wanghuancoder Aug 22, 2022
3c2cf23
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
wanghuancoder Aug 22, 2022
47cdfa8
delete final state pre name
wanghuancoder Aug 22, 2022
316784a
merge
wanghuancoder Aug 22, 2022
e121600
refine
wanghuancoder Aug 22, 2022
d569558
merge
wanghuancoder Aug 22, 2022
159cc62
refine
wanghuancoder Aug 22, 2022
dc468e0
refine
wanghuancoder Aug 22, 2022
669e832
refine
wanghuancoder Aug 22, 2022
68077a7
refine
wanghuancoder Aug 22, 2022
c3e54f8
refine
wanghuancoder Aug 22, 2022
403e032
refine
wanghuancoder Aug 22, 2022
afa43d4
refine
wanghuancoder Aug 23, 2022
3c713fc
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
wanghuancoder Aug 23, 2022
9dd9e94
refine
wanghuancoder Aug 23, 2022
3a28ce5
refine
wanghuancoder Aug 23, 2022
484e8c0
refine
wanghuancoder Aug 23, 2022
1dbfbaa
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
wanghuancoder Aug 23, 2022
5599093
refine
wanghuancoder Aug 23, 2022
caa2be9
refine
wanghuancoder Aug 24, 2022
828b321
refine
wanghuancoder Aug 24, 2022
a3b16b4
refine
wanghuancoder Aug 24, 2022
2a6f7d7
refine
wanghuancoder Aug 25, 2022
952bce9
merge
wanghuancoder Aug 25, 2022
0cdc1e1
merge
wanghuancoder Aug 25, 2022
3e881ef
refine
wanghuancoder Aug 25, 2022
5761375
refine
wanghuancoder Aug 25, 2022
585f1f9
refine
wanghuancoder Aug 25, 2022
ba87d67
refine
wanghuancoder Aug 25, 2022
afa0914
refine
wanghuancoder Aug 25, 2022
51afbda
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
wanghuancoder Aug 25, 2022
2ebf43e
merge
wanghuancoder Aug 25, 2022
b516f08
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
wanghuancoder Aug 26, 2022
c0ecbe1
refine
wanghuancoder Aug 26, 2022
d0bb790
refine
wanghuancoder Aug 26, 2022
a2a0f3a
refine
wanghuancoder Aug 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refine
wanghuancoder committed Aug 18, 2022
commit 2b0746bcfb702184d9792cdff4aca027f03acc1a
2 changes: 1 addition & 1 deletion python/paddle/nn/utils/transform_parameters.py
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@ def vector_to_parameters(vec, parameters, name=None):

if in_dygraph_mode():
with paddle.fluid.dygraph.no_grad():
res = _C_ops.final_state_split(input, sections, 0)
res = _C_ops.final_state_split(vec, sections, 0)
for i in range(0, len(res)):
res[i]._share_underline_tensor_to(parameters[i])
else:
2 changes: 1 addition & 1 deletion python/paddle/optimizer/adamax.py
Original file line number Diff line number Diff line change
@@ -263,7 +263,7 @@ def _finish_update(self, block, parameters_and_grads):
self._beta1_pow_acc_str, param)
self._beta1 = parameters_and_grads.get(
'beta1', self._default_dict['beta1'])
with paddle.no_grad():
with no_grad():
tmp = _C_ops.final_state_scale(beta1_pow_acc,
self._beta1, 0.0, True)
beta1_pow_acc.copy_(tmp, False)