We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current opset retrieval function assumes the default opset (ai.onnx) domain is always at the first index as shown below:
turnkeyml/src/turnkeyml/build/onnx_helpers.py
Lines 135 to 136 in 69a203e
However, some ONNX models may have this domain located elsewhere, leading to incorrect opset identification, for example:
Proposed solution:
def get_opset(model: onnx.ModelProto) -> int: opset = [x.version for x in model.opset_import if x.domain == ""] if opset: return opset[0] else: return None
Note that in the above code snippet x.domain == "" indicates the default domain which is ai.onnx.
x.domain == ""
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The current opset retrieval function assumes the default opset (ai.onnx) domain is always at the first index as shown below:
turnkeyml/src/turnkeyml/build/onnx_helpers.py
Lines 135 to 136 in 69a203e
However, some ONNX models may have this domain located elsewhere, leading to incorrect opset identification, for example:
Proposed solution:
Note that in the above code snippet
x.domain == ""
indicates the default domain which is ai.onnx.The text was updated successfully, but these errors were encountered: