-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Got "NOT_IMPLEMENTED" error on OneHot with int32 #1537
Comments
Ah, I miss PR #1317 , so I wait next release, thx! |
I tested them with version 0.5.0, and got same error on OneHot op with int32 type. Case1:
--> no error, works well, thanks! Case2:
--> got "NOT_IMPLEMENTED" error, I think the condition is acceptable on OneHot op. Case3:
or
--> also got "NOT_IMPLEMENTED" error, but I don't know runtimes had better to implement the condition or not. The docs says "In case 'indices' is of non-integer type, the values will be casted to int64 before use", so naturally the conditions are acceptable I think. |
Hi @disktnk , Thanks for bringing this up. Currently, the OneHot op doesn't support all type combinations. The PR you are referring to (#1317) supported in_type: int64, out_type: float, depth: int64.
Thanks |
Thanks for reply! It's reasonable and convinced your policy
Answer: 1 -> Yes, and the snippet just for reproducible |
Thanks for the confirmation. So there are 2 combinations requested -
Will send a PR out. |
Hi @disktnk - The requested type support should be available if you build from master. Thanks. |
Great!! I'll check it later, thx! |
Describe the bug
When call
OneHot
with int32 indeices, get "NOT_IMPLEMENTED" RuntimeError.System information
To Reproduce
based https://github.com/onnx/onnx/blob/v1.5.0/onnx/backend/test/case/node/onehot.py#L47
Expected behavior
No error,
OneHot
allows int32 input by Operators.mdScreenshots
Additional context
The text was updated successfully, but these errors were encountered: