Skip to content

Commit

Permalink
WIP: experiments trying to get rid of CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Liddell committed Feb 6, 2024
1 parent b5b1133 commit f67086c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/Dialect/Torch/IR/TorchOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2842,9 +2842,12 @@ OpFoldResult AtenDivIntOp::fold(FoldAdaptor adaptor) {
OpFoldResult AtenIndexSelectOp::fold(FoldAdaptor adaptor) {
auto self = getSelf();
auto index = getIndex();
auto selfTy = cast<ValueTensorType>(self.getType());
auto indexTy = cast<ValueTensorType>(index.getType());
auto resultTy = cast<ValueTensorType>(getType());
auto selfTy = dyn_cast_or_null<ValueTensorType>(self.getType());
assert(selfTy);
auto indexTy = dyn_cast_or_null<ValueTensorType>(index.getType());
assert(indexTy);
auto resultTy = dyn_cast_or_null<ValueTensorType>(getType());
assert(resultTy);

auto selfSizes = selfTy.getSizes();
auto indexSizes = indexTy.getSizes();
Expand Down

0 comments on commit f67086c

Please sign in to comment.