We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0189977 commit 90350e6Copy full SHA for 90350e6
lib/Dialect/Torch/IR/TorchOps.cpp
@@ -4107,9 +4107,8 @@ OpFoldResult AtenSliceTensorOp::fold(FoldAdaptor adaptor) {
4107
limit = limit < 0 ? limit + inType.getSizes()[dimInt] : limit;
4108
limit = limit < 0 ? -1 : limit;
4109
limit = std::min(limit, inType.getSizes()[dimInt]);
4110
- assert((stride > 0 && begin < limit) ||
4111
- (stride < 0 && begin > limit) &&
4112
- "aten.slice.Tensor iteration args are statically invalid.");
+ assert(((stride > 0 && begin < limit) || (stride < 0 && begin > limit)) &&
+ "aten.slice.Tensor iteration args are statically invalid.");
4113
4114
int64_t inputRank = inType.getSizes().size();
4115
llvm::SmallVector<int64_t> inputStrides(inputRank, 1);
0 commit comments