Add a new op embedding.#306
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.
| **kwargs,# pylint: disable=unused-argument | |
| **_, |
Don’t know if ** works in onnxscript, but if it does:
There was a problem hiding this comment.
Do we need to change behavior based on padding_idx?
There was a problem hiding this comment.
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.
I think we should also support any training behaviors when possible.
|
@gramalingam so variadic keyword arguments are supported? |
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>
Add a new op embeding and its test.