-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[mlir][td] Rename pack_paddings in structured.pad #111036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mlir][td] Rename pack_paddings in structured.pad #111036
Conversation
The pack_paddings attribute in the structure.pad TD Op is used to set the `nofold` attribute in the generated tensor.pad Op. The current name is confusing and suggests that there's a relation with the tensor.pack Op. This patch renames it as `nofold_flags` to better match the actual usage.
|
@llvm/pr-subscribers-mlir-linalg @llvm/pr-subscribers-mlir Author: Andrzej Warzyński (banach-space) ChangesThe pack_paddings attribute in the structure.pad TD Op is used to set Full diff: https://github.com/llvm/llvm-project/pull/111036.diff 10 Files Affected:
|
javedabsar1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The existing comments actually in two places state that packPaddings ... nofold attribute AND flag for every operand to mark the PadOp as nofold which ....
So thanks for this.
hanhanW
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, sorry that I missed the PR. LGTM, thanks!
| /*padToMultipleOf=*/dynamicPadToMultipleOf, | ||
| /*padToMultipleOf=*/staticPadToMultipleOf, | ||
| /*packPaddings=*/b.getI64ArrayAttr(packPaddings), | ||
| /*nofoldFlags=*/b.getI64ArrayAttr(nofoldFlags), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[no action required] side note: most of the function arguments are redundant to me because the variable name already spells it.
The pack_paddings attribute in the structure.pad TD Op is used to set the `nofold` attribute in the generated tensor.pad Op. The current name is confusing and suggests that there's a relation with the tensor.pack Op. This patch renames it as `nofold_flags` to better match the actual usage.
The pack_paddings attribute has been renamed to nofold_flags in #111036. There are still some `packPadding` remaining unchanged. This PR rename those to keep consistent.
The pack_paddings attribute in the structure.pad TD Op is used to set
the
nofoldattribute in the generated tensor.pad Op. The current nameis confusing and suggests that there's a relation with the tensor.pack
Op. This patch renames it as
nofold_flagsto better match the actualusage.