提交 57a22db3 编写于 作者: F fengjiayi

update PADDLE_ENFORCE message

上级 34beec0f
...@@ -48,7 +48,7 @@ class Tensor { ...@@ -48,7 +48,7 @@ class Tensor {
T* mutable_data(paddle::platform::Place place) { T* mutable_data(paddle::platform::Place place) {
PADDLE_ENFORCE(numel_ > 0, PADDLE_ENFORCE(numel_ > 0,
"Tensor::numel_ must be larger than zero to call " "Tensor::numel_ must be larger than zero to call "
"Tensor::mutable_data."); "Tensor::mutable_data. Call Tensor::set_dim first.");
if (holder_ == nullptr || if (holder_ == nullptr ||
!(holder_->place() == !(holder_->place() ==
place) /* some versions of boost::variant don't have operator!= */ place) /* some versions of boost::variant don't have operator!= */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册