daquexian / onnx-simplifier

Simplify your onnx model
Apache License 2.0
3.67k stars 377 forks source link

[BUG] Error of Unique after Gather—— NOT_IMPLEMENTED : Could not find an implementation for Unique(11) node with name 'Unique_132' #294

Closed WanchaoYao closed 1 year ago

WanchaoYao commented 1 year ago

Describe the bug When simplifying uploaded model(see point_cloud.zip), got an error "

onnxruntime.capi.onnxruntime_pybind11_state.NotImplemented: [ONNXRuntimeError] : 9 : NOT_IMPLEMENTED : Could not find an implementation for Unique(11) node with name 'Unique_132'

I think there may be a bug for the pattern 'Unique after Gather' onnxsim version is 0.4.33. Can anyone help me to do some analysis?

image

Model point_cloud.zip

WanchaoYao commented 1 year ago

I know the reason now! ORT only supports INT64, INT8, FLOAT, STRING as dtype for Unique op!