Skip to content

Commit 8b622d5

Browse files
authored
[XPU] add delete_cast_op_pass (#52305)
1 parent 3e2d019 commit 8b622d5

File tree

6 files changed

+999
-0
lines changed

6 files changed

+999
-0
lines changed

paddle/fluid/framework/ir/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ if(WITH_XPU)
240240
pass_library(fused_multi_transformer_xpu_quant_pass inference DIR xpu DEPS
241241
${XPU_PASS_DEPS})
242242
pass_library(stack_fuse_pass inference DIR xpu DEPS ${XPU_PASS_DEPS})
243+
pass_library(delete_cast_op_pass inference DIR xpu DEPS ${XPU_PASS_DEPS})
243244
endif()
244245

245246
cc_library(
@@ -518,4 +519,8 @@ if(WITH_XPU)
518519
test_stack_fuse_pass
519520
SRCS xpu/stack_fuse_pass_test.cc
520521
DEPS stack_fuse_pass)
522+
cc_test(
523+
test_delete_cast_op_pass
524+
SRCS xpu/delete_cast_op_pass_test.cc
525+
DEPS delete_cast_op_pass)
521526
endif()

0 commit comments

Comments
 (0)