Skip to content

Commit

Permalink
Fix sign-compare warning (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiro050 authored May 22, 2023
1 parent b407b4f commit 588bdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/Torch/Transforms/RecomposeComplexOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class RecomposeUnbindListUnpack : public OpRewritePattern<PrimListUnpackOp> {
Value dim = unbind.getDim();
Value input = unbind.getSelf();
SmallVector<Value> slices;
for (int i = 0; i < op.getNumResults(); i++) {
for (size_t i = 0; i < op.getNumResults(); i++) {
// rewrite to slice op
auto resultTy = op.getResult(i).getType();
auto index = rewriter.create<Torch::ConstantIntOp>(
Expand Down

0 comments on commit 588bdc1

Please sign in to comment.