[Stablehlo]index type use i64 (#3354)

pull/3085/head
Xinyu Yang 2024-05-16 15:33:23 +08:00 committed by GitHub
parent 7faba75696
commit 28193fd985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -247,8 +247,7 @@ FailureOr<Value> broadcastAndConcatIndices(Operation *op,
concatShape.push_back(indexTensors.size());
SmallVector<Value> broadcastedIndices;
Type indexElemTy =
cast<RankedTensorType>(indexTensors[0].getType()).getElementType();
Type indexElemTy = rewriter.getI64Type();
RankedTensorType bcastIndexType =
RankedTensorType::get(indicesShape, indexElemTy);
for (auto indexTensor : indexTensors) {