未验证 提交 4656525e 编写于 作者: Y yaoxuefeng 提交者: GitHub

fix datanorm error msg (#30294)

上级 77051cc9
......@@ -390,7 +390,7 @@ class DataNormKernel<platform::CPUDeviceContext, T>
}
default:
PADDLE_THROW(platform::errors::InvalidArgument(
"Unknown storage order: %d", data_layout));
"Unknown storage order: %d, please use NCHW or NHWC", data_layout));
}
}
};
......@@ -701,7 +701,8 @@ class DataNormGradKernel<platform::CPUDeviceContext, T>
}
default:
PADDLE_THROW(platform::errors::InvalidArgument(
"Unknown storage order: %s", data_layout_str));
"Unknown storage order: %s, please use NCHW or NHWC",
data_layout_str));
}
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册