Skip to content

Commit d0d9387

Browse files
committed
[circle-mlir/dialect] Adaptor with OpaqueProperties
This will revise Conv2D, Reshape to construct Adaptor with OpaqueProperties. ONE-DCO-1.0-Signed-off-by: SaeHie Park <saehie.park@gmail.com>
1 parent 97d6d49 commit d0d9387

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

circle-mlir/circle-mlir/lib/dialect/src/ops/Conv2DOp.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ LogicalResult ComputeConvWindowedOutputSize(int64_t input_size, int64_t filter_s
5454
}
5555

5656
LogicalResult Conv2DOp::inferReturnTypes(MLIRContext *, std::optional<Location> location,
57-
ValueRange operands, DictionaryAttr attr, OpaqueProperties,
58-
RegionRange, SmallVectorImpl<Type> &inferredReturnTypes)
57+
ValueRange operands, DictionaryAttr attr,
58+
OpaqueProperties properties, RegionRange,
59+
SmallVectorImpl<Type> &inferredReturnTypes)
5960
{
60-
Conv2DOpAdaptor op(operands, attr);
61+
Conv2DOpAdaptor op(operands, attr, properties);
6162

6263
const Value input = op.getInput();
6364
const Value filter = op.getFilter();

circle-mlir/circle-mlir/lib/dialect/src/ops/ReshapeOp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,10 @@ mlir::LogicalResult ReshapeOp::verify()
370370

371371
LogicalResult ReshapeOp::inferReturnTypes(MLIRContext *context, std::optional<Location> location,
372372
ValueRange operands, DictionaryAttr attr,
373-
OpaqueProperties, RegionRange,
373+
OpaqueProperties properties, RegionRange,
374374
SmallVectorImpl<Type> &inferredReturnTypes)
375375
{
376-
ReshapeOpAdaptor op(operands, attr);
376+
ReshapeOpAdaptor op(operands, attr, properties);
377377
const Value input = op.getInput();
378378
const Value shape = op.getShape();
379379

0 commit comments

Comments
 (0)