Skip to content

Commit

Permalink
[Torch] add constriants when decompose aten.split_with_sizes (llvm#3555)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyunqu authored Jul 23, 2024
1 parent 45c85c3 commit 7884642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ class DecomposeAtenSplitWithSizesOp

auto sliceTy =
dyn_cast_or_null<Torch::BaseTensorType>(resultTy.getContainedType());
if (!isa<Torch::BaseTensorType>(sliceTy))
if (!sliceTy || !sliceTy.hasSizes())
return rewriter.notifyMatchFailure(op, "Slice type is unknown");

int64_t dimInt = 0;
Expand Down

0 comments on commit 7884642

Please sign in to comment.