mirror of https://github.com/llvm/torch-mlir
[Torch] add constriants when decompose aten.split_with_sizes (#3555)
parent
45c85c3b34
commit
78846425e2
|
@ -1352,7 +1352,7 @@ class DecomposeAtenSplitWithSizesOp
|
||||||
|
|
||||||
auto sliceTy =
|
auto sliceTy =
|
||||||
dyn_cast_or_null<Torch::BaseTensorType>(resultTy.getContainedType());
|
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");
|
return rewriter.notifyMatchFailure(op, "Slice type is unknown");
|
||||||
|
|
||||||
int64_t dimInt = 0;
|
int64_t dimInt = 0;
|
||||||
|
|
Loading…
Reference in New Issue