未验证 提交 5faf76b7 编写于 作者: Z zyfncg 提交者: GitHub

fix bug of building InferMetaContext (#42211)

上级 8c58f962
......@@ -558,10 +558,7 @@ CompatInferMetaContext BuildInferMetaContext(InferShapeContext* ctx,
}
if (num_ele <= 0) {
PADDLE_THROW(platform::errors::Unimplemented(
"Invalid number for construct phi::IntArray, expected "
"number > 0, but actually is %d. ",
num_ele));
num_ele = tensor_dims.size();
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册