未验证 提交 d7cce317 编写于 作者: W Wangzheee 提交者: GitHub

fix_remove_padding_recover_padding_pass (#56439)

上级 da1a52e5
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册