Fix sign-compare warning (#2136)

pull/2157/head
Ramiro Leal-Cavazos 2023-05-22 09:15:33 -07:00 committed by GitHub
parent b407b4f1f3
commit 588bdc1344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public:
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>(