mirror of https://github.com/llvm/torch-mlir
parent
1eb63f33af
commit
ddd0c06970
|
@ -124,7 +124,7 @@ public:
|
|||
|
||||
// Create indicesVector for IndexPut_Op by TorchNone and indexTensor
|
||||
BaseTensorType tensorType = op->getResultTypes()[0].cast<BaseTensorType>();
|
||||
SmallVector<Value> indicesVector(dim - 1, noneVal);
|
||||
SmallVector<Value> indicesVector(dim, noneVal);
|
||||
indicesVector.push_back(indexTensor);
|
||||
|
||||
Value indices = rewriter.create<PrimListConstructOp>(
|
||||
|
|
Loading…
Reference in New Issue