-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[ONNX] export sum, prod, sqrt improve log_softmax. #4579
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
Signed-off-by: HE, Tao <sighingnow@gmail.com>
Signed-off-by: HE, Tao <sighingnow@gmail.com>
|
Could you also add the onnx tests in https://github.com/onnxbot/onnx-fb-universe/blob/master/test/test_operators.py? |
|
@pytorchbot test this please This is so legit! Thank you! |
|
The test output needs updating. It's as simple as running |
torch/onnx/symbolic.py
Outdated
|
|
||
|
|
||
| def sqrt(g, self): | ||
| return g.op('Sqrt', self) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Signed-off-by: HE, Tao <sighingnow@gmail.com>
Signed-off-by: HE, Tao <sighingnow@gmail.com>
|
Update trace log for |
Signed-off-by: HE, Tao <sighingnow@gmail.com>
|
Update axis_i to "list of ints", according to the onnx's doc: https://github.com/onnx/onnx/blob/master/docs/Operators.md#attributes-48 |
Signed-off-by: HE, Tao <sighingnow@gmail.com>
|
Onnx test done in onnxbot/onnx-fb-universe#247 /cc: @houseroad |
|
@pytorchbot retest this please |
1 similar comment
|
@pytorchbot retest this please |
Signed-off-by: HE, Tao <sighingnow@gmail.com>
|
Line ends fixed. |
|
thank you @sighingnow ! |
* ONNX: export sum, prod, sqrt improve log_softmax and fix a typo in doc. Signed-off-by: HE, Tao <sighingnow@gmail.com> * Add new exported op to doc. Signed-off-by: HE, Tao <sighingnow@gmail.com> * Double quotes. Signed-off-by: HE, Tao <sighingnow@gmail.com> * Update trace log of log_softmax. Signed-off-by: HE, Tao <sighingnow@gmail.com> * Improve export when dim is None and axes_i should be a list of ints. Signed-off-by: HE, Tao <sighingnow@gmail.com> * Fix prod when no dim given. Signed-off-by: HE, Tao <sighingnow@gmail.com> * Update line ends in test expected file. Signed-off-by: HE, Tao <sighingnow@gmail.com>
More exports:
sumprodsqrtImprove:
log_softmaxDoc:
docs/source/onnx.rst