-
Notifications
You must be signed in to change notification settings - Fork 559
Full codegen for sgn, sign
#3577
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
| torch::lazy::MakeNode<Sign>( | ||
| f, std::vector<torch::lazy::Shape>()) * | ||
| torch::lazy::MakeNode<Sign>( | ||
| divisor, std::vector<torch::lazy::Shape>()), |
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.
This kind of call pattern starts to get very messy. I suggest we think about a cleaner solution. Thinking...
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.
we need to clean up all of the Node Level lowering. meaning a Node should not use another Node to do the lowering directly. The solution is to wrote a lower function for all these ops and in this case call BuildSign.
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.
Thanks!
| torch::lazy::MakeNode<Sign>( | ||
| f, std::vector<torch::lazy::Shape>()) * | ||
| torch::lazy::MakeNode<Sign>( | ||
| divisor, std::vector<torch::lazy::Shape>()), |
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.
we need to clean up all of the Node Level lowering. meaning a Node should not use another Node to do the lowering directly. The solution is to wrote a lower function for all these ops and in this case call BuildSign.
- `SgnOp` and `SignOp`
- Full codegen migration: #3577
- Mistakenly re-introduced: #3572
- `LogSigmoid`
- Introduced: #3539
- Full codegen migration: #3743
- `SiLU`
- Introduced: #2721
- Full codegen migration: #3780
- `SiLUBackward`
- Introduced: #3195
- Full codegen migration: #3780
- `SeLU`
- Introduced: #3547
- Full codegen migration: #3780
- `Sigmoid`
- Introduced: 6a73deb (no PR record)
- Full codegen migration: #6342
Full codegen for
sgn,signGenerate
LazyIr.hGenerated
XLANativeFunctions.cpp: