-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support convTranspose #201
Conversation
@@ -81,7 +81,7 @@ def check_by_data(expected, result, max_error=1e-4): | |||
|
|||
def _convert_type(dtype): | |||
assert not WITHOUT_ONNXRUNTIME | |||
return mapping.NP_TYPE_TO_TENSOR_TYPE[dtype] | |||
return helper.np_dtype_to_tensor_dtype(dtype) |
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.
using mapping.NP_TYPE_TO_TENSOR_TYPE[dtype]
cause following deperecation warning.
DeprecationWarning: `mapping.NP_TYPE_TO_TENSOR_TYPE` is now deprecated and will be removed in a future release.To silence this warning, please use `helper.np_dtype_to_tensor_dtype` instead.
return mapping.NP_TYPE_TO_TENSOR_TYPE[dtype]
@@ -24,7 +24,7 @@ def on_arm32(): | |||
result = bool(int(os.environ["ONNION_TEST_ON_ARM32"])) | |||
except Exception: | |||
arch = platform.machine() | |||
if arch == "x86_64": | |||
if arch == "x86_64" or arch == "arm64": |
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.
add "arm64" to support apple silicon environment.
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.
Add tests which use b
.
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.
LGTM
🙏 |
support 2d convTranspose
https://github.com/onnx/onnx/blob/main/docs/Operators.md#ConvTranspose