Skip to content

Commit ad18219

Browse files
authored
Fix for unused variable failure when trying to bump torch-mlir in IREE (#2560)
Due to blob being an unused variable, we are not able to bump torch-mlir in iree. With this PR, we remove this unused variable.
1 parent f3bfa81 commit ad18219

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Conversion/TorchToArith/TorchToArith.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ class ConvertTorchTensorLiteralOp
191191
IntegerType::get(context, intType.getIntOrFloatBitWidth());
192192
auto shapedType =
193193
RankedTensorType::get(type.getShape(), builtinTensorElemTy);
194-
AsmResourceBlob *blob = elements.getRawHandle().getBlob();
195-
assert(blob && "Expecting dense resource with a valid blob");
196194
rewriter.replaceOpWithNewOp<arith::ConstantOp>(
197195
op, DenseResourceElementsAttr::get(shapedType,
198196
elements.getRawHandle()));

0 commit comments

Comments
 (0)