Skip to content

[circle-mlir] Update intype after padding in ConvOp#16406

Merged
hseok-oh merged 2 commits intoSamsung:masterfrom
batcheu:update_intyp_in_ConvOp_pass
Feb 27, 2026
Merged

[circle-mlir] Update intype after padding in ConvOp#16406
hseok-oh merged 2 commits intoSamsung:masterfrom
batcheu:update_intyp_in_ConvOp_pass

Conversation

@batcheu
Copy link
Copy Markdown
Contributor

@batcheu batcheu commented Feb 25, 2026

After inserting padding on the input tensor, the intype variable is now updated to reflect the type of the padded input.

ONE-DCO-1.0-Signed-off-by: Jonghwa Lee jonghwa3.lee@samsung.com


After inserting padding on the input tensor, the intype variable
is now updated to reflect the type of the padded input.

ONE-DCO-1.0-Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
if (GetPads(op.getPads(), padsValue))
{
inputPreTr = insertPad(rewriter, op_name, input, outtype, padsValue);
intype = mlir::dyn_cast_or_null<mlir::RankedTensorType>(inputPreTr.getType());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about add debug message such as line 82?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a debug message as you commented ;)

...
ConvConv name: /op/Conv
ConvConv auto_pad: NOTSET
ConvConv dilations: [1, 1]
ConvConv group: 32
ConvConv kernel_shape: [3, 3]
ConvConv pads: [1, 1, 1, 1]
ConvConv strides: [1, 1]
ConvConv intype: tensor<1x256x200x320xf32>
ConvConv outtype: tensor<1x256x200x320xf32>
ConvConv padH: 202, padW: 322
ConvConv Pad: loc("/op/Conv/pads")
ConvConv intype after padding: tensor<1x256x202x322xf32>          // newly added message
...

ONE-DCO-1.0-Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Copy link
Copy Markdown
Contributor

@hseok-oh hseok-oh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hseok-oh hseok-oh merged commit e891c2b into Samsung:master Feb 27, 2026
7 checks passed
@batcheu batcheu deleted the update_intyp_in_ConvOp_pass branch March 4, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants