[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.
This commit is contained in:
committed by
GitHub
parent
87db0c0601
commit
a758bcdbd9
@@ -304,7 +304,7 @@ def testPadOpNoArgs(target):
|
||||
# CHECK: transform.sequence
|
||||
# CHECK: transform.structured.pad
|
||||
# CHECK-NOT: copy_back_op
|
||||
# CHECK-NOT: pack_paddings
|
||||
# CHECK-NOT: nofold_flags
|
||||
# CHECK-NOT: pad_to_multiple_of
|
||||
# CHECK-NOT: padding_dimensions
|
||||
# CHECK-NOT: padding_values
|
||||
@@ -319,7 +319,7 @@ def testPadOpArgs(target):
|
||||
pad_to_multiple_of=[128],
|
||||
padding_values=[FloatAttr.get_f32(42.0), StringAttr.get("0")],
|
||||
padding_dimensions=Attribute.parse("[1]"),
|
||||
pack_paddings=[0],
|
||||
nofold_flags=[0],
|
||||
transpose_paddings=[[1, Attribute.parse("0")], Attribute.parse("[0, 1]")],
|
||||
copy_back_op="linalg.copy",
|
||||
)
|
||||
@@ -328,7 +328,7 @@ def testPadOpArgs(target):
|
||||
# CHECK: transform.structured.pad
|
||||
# CHECK-DAG: pad_to_multiple_of [128]
|
||||
# CHECK-DAG: copy_back_op = "linalg.copy"
|
||||
# CHECK-DAG: pack_paddings = [0]
|
||||
# CHECK-DAG: nofold_flags = [0]
|
||||
# CHECK-DAG: padding_dimensions = [1]
|
||||
# CHECK-DAG: padding_values = [4.200000e+01 : f32, "0"]
|
||||
# CHECK-DAG: transpose_paddings = {{\[}}[1, 0], [0, 1]]
|
||||
|
||||
Reference in New Issue
Block a user