You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I am surprised to see ONNXRuntime optimizer has added custom opsets in the second model that does not contain my custom operator:
print(opt_model.opset_import)
# [domain: ""# version: 15# , domain: "com.microsoft.nchwc"# version: 1# , domain: "ai.onnx.ml"# version: 5# , domain: "ai.onnx.training"# version: 1# , domain: "ai.onnx.preview.training"# version: 1# , domain: "com.microsoft"# version: 1# , domain: "com.microsoft.experimental"# version: 1# , domain: "org.pytorch.aten"# version: 1# , domain: "custom_domain" <- Added when I register the library in the first model# version: 1000# , domain: "ai.onnx.contrib" <- Added when I register the library in the first model# version: 1000# , domain: "com.microsoft.extensions" <- Added when I register the library in the first model# version: 1000# ]
Therefore, I have the following questions :
Why has the onnxruntime optimizer added these opsets, seeing that opt_model has nothing to do with the custom operator definition ?
Is there any way to restrict the opset version that the operator adds when optimizing? I mean, when declaring the custom op through @onnx_op, can I include the version of the opset I want (e.g. a value different from 1000)?
The text was updated successfully, but these errors were encountered:
Context: I am using ONNXRuntime extensions to declare a custom operation and compare it with its original version :
However, I am surprised to see ONNXRuntime optimizer has added custom opsets in the second model that does not contain my custom operator:
Therefore, I have the following questions :
opt_model
has nothing to do with the custom operator definition ?The text was updated successfully, but these errors were encountered: