-
Notifications
You must be signed in to change notification settings - Fork 64
Add a new op embedding. #306
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
Codecov Report
@@ Coverage Diff @@
## main #306 +/- ##
==========================================
+ Coverage 72.92% 72.95% +0.02%
==========================================
Files 97 97
Lines 9445 9446 +1
==========================================
+ Hits 6888 6891 +3
+ Misses 2557 2555 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
) -> TensorType: | ||
weight: TTensor, | ||
indices: TTensor, | ||
**kwargs,# pylint: disable=unused-argument |
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.
**kwargs,# pylint: disable=unused-argument | |
**_, |
Don’t know if ** works in onnxscript, but if it does:
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 we need to change behavior based on padding_idx?
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.
According to current implementation, it will only impact Training. I think ONNX Script won't know if current export is under Training mode, so the warning about possible wrong training result should be thrown by exporter, not onnx-script.
Thoughts?
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.
I think we should also support any training behaviors when possible.
@gramalingam so variadic keyword arguments are supported? |
Co-authored-by: Justin Chu <[email protected]>
Add a new op embeding and its test.