Skip to content

Commit

Permalink
fix_remove_padding_recover_padding_pass (PaddlePaddle#56439)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangzheee authored and BeingGod committed Sep 9, 2023
1 parent 3b08a2b commit 81502ff
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ void RemovePaddingRecoverPaddingPass::ApplyImpl(ir::Graph* graph) const {
}

if (PADDLE_GET_CONST(
int, matrix_multiply_op->Op()->GetAttr("x_num_col_dims")) != 2) {
int, matrix_multiply_op->Op()->GetAttr("x_num_col_dims")) != 2 &&
PADDLE_GET_CONST(
int, matrix_multiply_op->Op()->GetAttr("x_num_col_dims")) != -1) {
check_flag = false;
}
if (!check_flag) {
Expand Down

0 comments on commit 81502ff

Please sign in to comment.