Skip to content

Commit

Permalink
change add pass
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglirong1999 committed Apr 17, 2024
1 parent c237db8 commit f878e99
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def build_ir_program(self):
transpose = paddle.transpose(squeeze_out, [0, 1, 2])
out = paddle.unsqueeze(transpose, [1])
out = paddle.assign(out)
self.pass_list = [
'squeeze_transpose_onednn_fuse_pass',
'operator_unsqueeze_onednn_fuse_pass',
self.pass_attr_list = [
{'squeeze_transpose_onednn_fuse_pass': {}},
{'operator_unsqueeze_onednn_fuse_pass': {}},
]
self.feeds = {
"x": np.random.random((4, 16, 1, 32)).astype("float32"),
Expand Down Expand Up @@ -177,9 +177,9 @@ def build_ir_program(self):
relu_out = act_op(matmul)
out = paddle.unsqueeze(relu_out, [1])
out = paddle.assign(out)
self.pass_list = [
'elementwise_act_onednn_fuse_pass',
'operator_unsqueeze_onednn_fuse_pass',
self.pass_attr_list = [
{'elementwise_act_onednn_fuse_pass': {}},
{'operator_unsqueeze_onednn_fuse_pass': {}},
]
self.feeds = {
"x": np.random.random((5, 5, 5, 5)).astype("float32"),
Expand Down

0 comments on commit f878e99

Please sign in to comment.