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
What to add:
When converting a model containing a Constant type operator to C using the CLangBackend, onnc exits prematurely with the following message:
Constant
C
CLangBackend
onnc
Meet unsupported operator: Constant(name="Constant_72")
Why it is necessary:
Constant is a common operator.
How to achieve it:
The "constant" operator is currently commented out in CLangBackend's RegisterLowers():
RegisterLowers()
// FIXME: #include <onnc/Transforms/TensorSel/Standards/ConstantLower.h> // TODO: #include <onnc/Transforms/TensorSel/Standards/ConstantFillLower.h>
So presumably, fixing ConstantLower would solve this issue?
ConstantLower
The text was updated successfully, but these errors were encountered:
Wow, it's weird. Due to historical reasons, ONNC handles Constant in ONNX IR level. The "Constant" operator should be removed in ONNX IR level by this pass: https://github.com/ONNC/onnc/blob/master/lib/Transforms/ExtractConstToInitializer.cpp And that pass should be added in addStandardTensorSel(): https://github.com/ONNC/onnc/blob/master/lib/Target/TargetStandardPasses.cpp#L43 https://github.com/ONNC/onnc/blob/master/lib/Target/CLang/CLangBackend.cpp#L171
addStandardTensorSel()
Fixing ConstantLower would solve this "Meet unsupported operator" error, but I'm not sure following passes could handle Constant operator correctly.
Sorry, something went wrong.
Thanks! That ought to help me pinpoint the issue - I will see if I am able to fix it myself using your information.
No branches or pull requests
What to add:
When converting a model containing a
Constant
type operator toC
using theCLangBackend
,onnc
exits prematurely with the following message:Why it is necessary:
Constant
is a common operator.How to achieve it:
The "constant" operator is currently commented out in
CLangBackend
'sRegisterLowers()
:So presumably, fixing
ConstantLower
would solve this issue?The text was updated successfully, but these errors were encountered: