Skip to content

Commit 6096fcb

Browse files
authored
[OnnxToTorch] Delete unused variables. (#2728)
1 parent fb1dfa3 commit 6096fcb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Conversion/TorchOnnxToTorch/DefaultDomainQtoZ.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -669,15 +669,8 @@ void mlir::torch::onnx_c::populateDefaultDomainQtoZ(
669669
}
670670
return success();
671671
}
672-
Value zero = rewriter.create<Torch::ConstantIntOp>(
673-
binder.getLoc(), rewriter.getType<Torch::IntType>(),
674-
rewriter.getIntegerAttr(rewriter.getIntegerType(64), 0));
675672
int64_t adjustmentInt =
676673
cast<Torch::ValueTensorType>(data.getType()).getSizes().size();
677-
Value adjustment = rewriter.create<Torch::ConstantIntOp>(
678-
binder.getLoc(), rewriter.getType<Torch::IntType>(),
679-
rewriter.getIntegerAttr(rewriter.getIntegerType(64),
680-
adjustmentInt));
681674
// convert axes (tensor) into torch int list while dealing with neg axis
682675
for (int i = 0; i < axes.size(); i++) {
683676
// Go through the axes list and get each dim in the list

0 commit comments

Comments
 (0)