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

[DoubleGrad #4] Bug Fixes to Double Grad Node Generation #41121

Merged
merged 25 commits into from
Apr 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5e95fd1
[Refactor] refactored eager_gen.py PR #2
jim19930609 Mar 24, 2022
214ad36
[DoubleGrad PR #1] Decoupled code generation logics for Dygraph Forwa…
jim19930609 Mar 25, 2022
14ebc19
Fixed minor issue
jim19930609 Mar 25, 2022
62179ba
Merged develop
jim19930609 Mar 25, 2022
2a83dd9
Merged develop from [#40935] Bug fix for intermediate support in Yaml
jim19930609 Mar 28, 2022
9e7ecf6
Adjusted logics of GenerateNodeCreationCodes and GenerateForwardDefin…
jim19930609 Mar 28, 2022
b945424
Fixed issues
jim19930609 Mar 28, 2022
033913c
Merged develop
jim19930609 Mar 28, 2022
84ea03e
Supported higher-order grad node generation
jim19930609 Mar 28, 2022
f29de18
Merge branch 'refactored_node_creation_codes' of https://github.com/j…
jim19930609 Mar 28, 2022
6117fd1
[DoubleGrad PR #4] Supported higher-order GradNode generation
jim19930609 Mar 29, 2022
8785075
Merged develop
jim19930609 Mar 29, 2022
f647fb4
Merged develop
jim19930609 Mar 30, 2022
244f6da
[DoubleGrad #4] Bug Fixes to Double Grad Node Generation
jim19930609 Mar 30, 2022
d17aaef
Merged develop
jim19930609 Mar 30, 2022
4001488
Fixed yaml typo
jim19930609 Mar 30, 2022
564f04b
Merge branch 'support_double_grad_node_generation' of https://github.…
jim19930609 Mar 30, 2022
e26b572
Fixed yaml typo
jim19930609 Mar 30, 2022
abfef59
Merge branch 'support_double_grad_node_generation' of https://github.…
jim19930609 Mar 30, 2022
a16f769
merged develop
jim19930609 Mar 30, 2022
ca4fe62
merged develop
jim19930609 Mar 30, 2022
1b5fdb5
fixed minor issues
jim19930609 Mar 30, 2022
c542869
merged develop
jim19930609 Mar 31, 2022
1239f69
Fixed minor issue
jim19930609 Mar 31, 2022
57de577
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jim19930609 Mar 31, 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
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
########################
### Global Variables ###
########################
ops_to_fill_zero_for_empty_grads = set(["split", "rnn"])
ops_to_fill_zero_for_empty_grads = set(
["split_grad", "rnn_grad", "matmul_double_grad"])

# For API dispatch used at python-level
# { op_name : [arg_name, ...] }
Expand Down Expand Up @@ -176,6 +177,11 @@ def TransformGradVarNameForDoubleGradGeneration(string):
return string


def GetIndent(num):
tab = " "
return "".join([tab for i in range(num)])


######################
### Yaml Parsers ###
######################
Expand Down
Loading