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 grad] Refactor partial grad logic #40693

Merged
merged 53 commits into from
Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
9fc70fe
[Eager] Support eager grad interface, draft version
veyron95 Mar 4, 2022
ba8d79e
Support eager grad interface with allow_unused and multi startup_op
veyron95 Mar 7, 2022
137db9d
Fix code format
veyron95 Mar 8, 2022
1a18aa2
Fix allow_unused case, return PyNone if tensor not initialize
veyron95 Mar 8, 2022
d09ec3b
Support output's stop_gradient related to create_graph
veyron95 Mar 8, 2022
f84f2be
Support grad exception case in eager mode, fix coverage CI
veyron95 Mar 8, 2022
733672e
Update ToPyObject, return PyNone if not initialize
veyron95 Mar 8, 2022
68b1991
AccumulationNode add FLAGS_retain_grad_for_all_tensor
veyron95 Mar 8, 2022
7665d63
Fix ci issue
veyron95 Mar 9, 2022
86393f5
Fix CI issue
veyron95 Mar 9, 2022
c653ec0
fix, use core.eager.Tensor
veyron95 Mar 9, 2022
9156cea
Add func SetBufferSlotRankZeros for GradTensorHolder
veyron95 Mar 9, 2022
6fd613d
Support retain_graph by using ClearTensorWrappers
veyron95 Mar 9, 2022
58731e9
Support retain_graph by using ClearTensorWrappers
veyron95 Mar 9, 2022
a88f9b1
Update retain_graph and no_grad_vars related test case
veyron95 Mar 9, 2022
778719b
Update code gen logic for ClearTensorWrappers
veyron95 Mar 10, 2022
65cf9e3
Fix by override statement
veyron95 Mar 10, 2022
af7b919
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
veyron95 Mar 10, 2022
4d3b57d
fix override func args
veyron95 Mar 10, 2022
415ff65
Support retain_graph, update unit tests
veyron95 Mar 10, 2022
bb283ce
Updated ClearTensorWrappers logic
veyron95 Mar 10, 2022
e548c22
fix grad python interface
veyron95 Mar 11, 2022
519c9a6
Use deep copy and update unit tests
veyron95 Mar 11, 2022
1fbc61b
Polish code
veyron95 Mar 11, 2022
c0a2b8b
Polish code
veyron95 Mar 11, 2022
536a28b
Fix CI issue, Deep copy only use when user set grad_tensors
veyron95 Mar 11, 2022
2417858
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
veyron95 Mar 11, 2022
34fa7c0
Fix CI, use Backward instead RunBackward
veyron95 Mar 11, 2022
1b89072
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
veyron95 Mar 12, 2022
af7f058
Fix CI, Declare kernel explicitly in test file
veyron95 Mar 12, 2022
f397b8f
Polish, remove vector of TensorWrapper
veyron95 Mar 14, 2022
e3f9826
Refactor the logic of grad/backward, polish codes
veyron95 Mar 14, 2022
27830a9
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
veyron95 Mar 14, 2022
7ede919
Update code after merge upstream develop
veyron95 Mar 14, 2022
f9adf49
Polish after merge upstream develop
veyron95 Mar 14, 2022
2fe3b9f
Update to adapt new GradNodeBase superclass
veyron95 Mar 14, 2022
90e97d6
Fix error introduced during conflict resolution
veyron95 Mar 14, 2022
d18697a
Update purify potential_startup_nodes logic
veyron95 Mar 15, 2022
1b5eac2
Fix errors
veyron95 Mar 15, 2022
f4e42e2
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
veyron95 Mar 15, 2022
58a03b5
Polish code
veyron95 Mar 15, 2022
b04e9a9
Remove useless args for ToPyObject
veyron95 Mar 15, 2022
c7bd6fc
Remove useless TensorWrappersSet
veyron95 Mar 15, 2022
ac85d81
Fix code-format, re-install pre-commit
veyron95 Mar 16, 2022
8312d2d
Fix pre-process logic for potential_startup_ops
veyron95 Mar 16, 2022
441bc81
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
veyron95 Mar 16, 2022
326eee5
Update unit tests, use eager mode
veyron95 Mar 16, 2022
a0ec433
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
veyron95 Mar 17, 2022
df99eea
Fix conflicts
veyron95 Mar 17, 2022
7b1841a
Refactor partial_grad/backward logic
veyron95 Mar 18, 2022
dcbfbf3
Add DuplicateCheck and polish code
veyron95 Mar 18, 2022
7552588
Refactor partial_grad/backward more clearly
veyron95 Mar 18, 2022
0f3f41e
Refactor GeneralGrad by SingleInstance
veyron95 Mar 18, 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
Loading