mirror of https://github.com/llvm/torch-mlir
[Stablehlo]index type use i64 (#3354)
parent
7faba75696
commit
28193fd985
|
@ -247,8 +247,7 @@ FailureOr<Value> broadcastAndConcatIndices(Operation *op,
|
||||||
concatShape.push_back(indexTensors.size());
|
concatShape.push_back(indexTensors.size());
|
||||||
|
|
||||||
SmallVector<Value> broadcastedIndices;
|
SmallVector<Value> broadcastedIndices;
|
||||||
Type indexElemTy =
|
Type indexElemTy = rewriter.getI64Type();
|
||||||
cast<RankedTensorType>(indexTensors[0].getType()).getElementType();
|
|
||||||
RankedTensorType bcastIndexType =
|
RankedTensorType bcastIndexType =
|
||||||
RankedTensorType::get(indicesShape, indexElemTy);
|
RankedTensorType::get(indicesShape, indexElemTy);
|
||||||
for (auto indexTensor : indexTensors) {
|
for (auto indexTensor : indexTensors) {
|
||||||
|
|
Loading…
Reference in New Issue