We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e254ed commit 8007022Copy full SHA for 8007022
mlir/lib/CAPI/Dialect/Linalg.cpp
@@ -59,7 +59,7 @@ mlirLinalgInferContractionDimensions(MlirOperation op) {
59
if (failed(maybeDims))
60
return result;
61
62
- linalg::ContractionDimensions contractionDims = *maybeDims;
+ const linalg::ContractionDimensions &contractionDims = *maybeDims;
63
MLIRContext *ctx = linalgOp.getContext();
64
65
auto toAttr = [&ctx](const SmallVector<unsigned, 2> &vals) -> MlirAttribute {
@@ -95,7 +95,7 @@ mlirLinalgInferConvolutionDimensions(MlirOperation op) {
95
96
97
98
- linalg::ConvolutionDimensions dims = *maybeDims;
+ const linalg::ConvolutionDimensions &dims = *maybeDims;
99
100
101
auto toI32Attr =
0 commit comments