Skip to content

Commit 688db2d

Browse files
committed
fix save/load config
1 parent a5694f6 commit 688db2d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

paddle/fluid/pir/serialize_deserialize/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ endif()
1313

1414
file(GLOB_RECURSE YAML_PATCH_FILES "*.yaml")
1515
# change pir version when new patches are added
16-
add_definitions(-DDEVELOP_VERSION=4)
16+
add_definitions(-DDEVELOP_VERSION=0)
1717
add_definitions(-DRELEASE_VERSION=4)
1818
set(TEMPLATE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/patch/template.h.in)
1919
set(PATCH_HEADER ${CMAKE_CURRENT_BINARY_DIR}/patch/patch.h)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
op_patches:
2+
- op_name : pd_op.moe_permute
3+
actions:
4+
- action : add_attr
5+
object : using_ue8m0_scale
6+
type : pir::BoolAttribute
7+
data : "false"

paddle/fluid/pir/serialize_deserialize/patch/3.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,4 @@ op_patches:
1616
object : output_size
1717
type : pir::Int64Attribute
1818
data : -1
19-
- op_name : pd_op.moe_permute
20-
actions:
21-
- action : add_attr
22-
object : using_ue8m0_scale
23-
type : pir::BoolAttribute
24-
data : "false"
19+

0 commit comments

Comments
 (0)