未验证 提交 30d000f8 编写于 作者: H hong 提交者: GitHub

fix matmul error message; test=develop (#21885)

上级 a01663ca
...@@ -349,10 +349,11 @@ class MatMulOp : public framework::OperatorWithKernel { ...@@ -349,10 +349,11 @@ class MatMulOp : public framework::OperatorWithKernel {
#else #else
PADDLE_ENFORCE_EQ( PADDLE_ENFORCE_EQ(
mat_dim_x.width_, mat_dim_y.height_, mat_dim_x.width_, mat_dim_y.height_,
"ShapeError: Input X's width should be equal to the Y's height, " platform::errors::InvalidArgument(
"but received X's shape: %s," "ShapeError: Input X's width should be equal to the Y's height, "
"Y's shape: %s.", "but received X's shape: [%s],"
DumpMatrixShape(mat_dim_x).c_str(), DumpMatrixShape(mat_dim_y).c_str()); "Y's shape: [%s].",
dim_x, dim_y));
#endif #endif
std::vector<int64_t> dim_out; std::vector<int64_t> dim_out;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册