-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add libSyntax support for #chainableGradient. #18255
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
Conversation
* Rename GradientExpr to ReverseAutoDiffExpr for consistency with the class hierarchy.
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
3 similar comments
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
traits=['Parenthesized'], | ||
children=[ | ||
Child('Identifier', kind='Token', | ||
token_choices=[ | ||
'PoundGradientToken', | ||
'ChainableGradientToken', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean PoundChainableGradientToken
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha. Good catch.
@swift-ci please test tensorflow |
@swift-ci Please test tensorflow |
@swift-ci please test tensorflow |
As a follow-up on #18250, this patch adds libSyntax support and fixes the naming in syntax nodes for reverse-mode differential operators.
Also rename
GradientExpr
toReverseAutoDiffExpr
in syntax nodes, since it is supposed to generalize the C++ classswift::ReverseAutoDiffExpr
instead of its subclassswift::GradientExpr
.