We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79ed896 commit 74f9df6Copy full SHA for 74f9df6
src/Conversion/ONNXToKrnl/ConvertONNXToKrnl.cpp
@@ -46,6 +46,7 @@ class ONNXEntryPointLowering : public OpRewritePattern<ONNXEntryPointOp> {
46
ONNXEntryPointOp::getEntryPointFuncAttrName());
47
StringRef entryPointName = funcRefAttr.getLeafReference().getValue();
48
Operation *entryPointOp = module.lookupSymbol(entryPointName);
49
+ assert(entryPointOp && "entry point name not found!");
50
func::FuncOp entryPointFunc = cast<func::FuncOp>(entryPointOp);
51
52
IntegerAttr numInputsAttr =
0 commit comments