File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Dialect/ONNX/ONNXOps/Tensor Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ bool isAbsent(Value input) {
4747LogicalResult ONNXResizeOpShapeHelper::computeShape () {
4848 ONNXResizeOpAdaptor operandAdaptor (operands, cast<ONNXResizeOp>(op));
4949 if (operandAdaptor.getAxes ().has_value ())
50- return op-> emitOpError ( " axes are unsupported " );
50+ return failure ( );
5151 const auto x = operandAdaptor.getX ();
5252 if (!hasShapeAndRank (x)) {
5353 return failure ();
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ LogicalResult ONNXSliceOpShapeHelper::computeShape() {
4343 createIE->getIntFromArrayAsSymbols (axes, axesSymbol);
4444 for (IndexExpr val : axesSymbol) {
4545 if (!val.isLiteral ())
46- return op-> emitError ( " Axes must be known at compile time " );
46+ return success ( );
4747 int64_t axis = val.getLiteral ();
4848 if (axis < 0 )
4949 axis += dataRank;
You can’t perform that action at this time.
0 commit comments