diff --git a/paddle/fluid/operators/data_norm_op.cc b/paddle/fluid/operators/data_norm_op.cc index 7dc1e23207d565a7a7636887e1cba78944acc01a..698c57482dd06e8f74db53f494412cab981bad5d 100644 --- a/paddle/fluid/operators/data_norm_op.cc +++ b/paddle/fluid/operators/data_norm_op.cc @@ -390,7 +390,7 @@ class DataNormKernel } 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 } 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)); } } };