@@ -1928,18 +1928,18 @@ class DecomposeAtenOuterOp : public OpRewritePattern<AtenOuterOp> {
1928
1928
1929
1929
Value one = rewriter.create <Torch::ConstantIntOp>(
1930
1930
loc, rewriter.getI64IntegerAttr (1 )); // Dimension index
1931
- SmallVector< int64_t , 2 > inputMatrixShape = { inputShape[ 0 ], 1 } ;
1931
+ inputShape. push_back ( 1 ) ;
1932
1932
Type inputMatrixType = inputType.getWithSizesAndDtype (
1933
- inputMatrixShape , inputType.getOptionalDtype ());
1933
+ inputShape , inputType.getOptionalDtype ());
1934
1934
1935
1935
Value inputMatrix =
1936
1936
rewriter.create <AtenUnsqueezeOp>(loc, inputMatrixType, input, one);
1937
1937
1938
1938
Value zero = rewriter.create <Torch::ConstantIntOp>(
1939
1939
loc, rewriter.getI64IntegerAttr (0 ));
1940
- SmallVector< int64_t , 2 > vec2MatrixShape = { 1 , vec2Shape[ 0 ]} ;
1941
- Type vec2MatrixType = vec2Type. getWithSizesAndDtype (
1942
- vec2MatrixShape , vec2Type.getOptionalDtype ());
1940
+ vec2Shape. insert (vec2Shape. begin (), 1 ) ;
1941
+ Type vec2MatrixType =
1942
+ vec2Type. getWithSizesAndDtype (vec2Shape , vec2Type.getOptionalDtype ());
1943
1943
1944
1944
Value vec2Matrix =
1945
1945
rewriter.create <AtenUnsqueezeOp>(loc, vec2MatrixType, vec2, zero);
0 commit comments