mirror of https://github.com/llvm/torch-mlir
parent
f1e3701caf
commit
ca0e906675
|
@ -2456,8 +2456,8 @@ public:
|
||||||
// Arragne reduce_dims tensor (vector), [0, 1, ... , dim-1, dim+1, ... ,
|
// Arragne reduce_dims tensor (vector), [0, 1, ... , dim-1, dim+1, ... ,
|
||||||
// ndim-1]
|
// ndim-1]
|
||||||
llvm::SmallVector<Value> reduceDimsVector;
|
llvm::SmallVector<Value> reduceDimsVector;
|
||||||
for (u_int64_t i = 0; i < ndim; i++) {
|
for (uint64_t i = 0; i < ndim; i++) {
|
||||||
if (i == (u_int64_t)dimInt)
|
if (i == (uint64_t)dimInt)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Value constI = rewriter.create<Torch::ConstantIntOp>(
|
Value constI = rewriter.create<Torch::ConstantIntOp>(
|
||||||
|
@ -2473,8 +2473,8 @@ public:
|
||||||
|
|
||||||
// Make output shape for linalg.vector_norm operation
|
// Make output shape for linalg.vector_norm operation
|
||||||
SmallVector<Value> inputSizeValue;
|
SmallVector<Value> inputSizeValue;
|
||||||
for (u_int64_t i = 0; i < inputSize.size(); i++) {
|
for (uint64_t i = 0; i < inputSize.size(); i++) {
|
||||||
if (i != (u_int64_t)dimInt)
|
if (i != (uint64_t)dimInt)
|
||||||
inputSize[i] = 1;
|
inputSize[i] = 1;
|
||||||
|
|
||||||
inputSizeValue.push_back(
|
inputSizeValue.push_back(
|
||||||
|
|
Loading…
Reference in New Issue