Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 94300a6

Browse files
authored
[mlir][td] Rename pack_paddings in structured.pad (#111036)
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.
1 parent 41e8c56 commit 94300a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/python/mlir/dialects/transform/structured.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def __init__(
377377
pad_to_multiple_of: Optional[Union[DynamicIndexList, ArrayAttr]] = None,
378378
padding_values: Optional[Union[ArrayAttr, Sequence[Attribute]]] = None,
379379
padding_dimensions: OptionalIntList = None,
380-
pack_paddings: OptionalIntList = None,
380+
nofold_flags: OptionalIntList = None,
381381
transpose_paddings: Optional[
382382
Union[ArrayAttr, Sequence[Union[ArrayAttr, IntOrAttrList]]]
383383
] = None,
@@ -407,7 +407,7 @@ def __init__(
407407
padding_values=padding_values,
408408
padding_dimensions=padding_dimensions,
409409
static_pad_to_multiple_of=static_pad_to_multiple_of,
410-
pack_paddings=pack_paddings,
410+
nofold_flags=nofold_flags,
411411
transpose_paddings=transpose_paddings,
412412
copy_back_op=copy_back_op,
413413
loc=loc,

0 commit comments

Comments
 (0)