Skip to content

Commit

Permalink
Another place in ScanOp::inferShapes needs refineShape=false (#1769)
Browse files Browse the repository at this point in the history
Signed-off-by: Tung D. Le <[email protected]>
  • Loading branch information
tungld authored Oct 7, 2022
1 parent 38715dc commit f22d379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dialect/ONNX/ONNXOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5111,7 +5111,8 @@ LogicalResult ONNXScanOp::inferShapes(
scan_inputs().front().getType().cast<ShapedType>().getDimSize(0);
unsqueezedShape.insert(unsqueezedShape.begin(), scanExtent);
updateType(std::get<0>(vScanOutputValToTy), unsqueezedShape,
rankedScanTy.getElementType());
rankedScanTy.getElementType(), /*encoding=*/nullptr,
/*refineShape=*/false);
}

return success();
Expand Down

0 comments on commit f22d379

Please sign in to comment.