Skip to content

Commit

Permalink
update PADDLE_ENFORCE message
Browse files Browse the repository at this point in the history
  • Loading branch information
JiayiFeng committed Jul 14, 2017
1 parent 34beec0 commit 57a22db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/framework/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Tensor {
T* mutable_data(paddle::platform::Place place) {
PADDLE_ENFORCE(numel_ > 0,
"Tensor::numel_ must be larger than zero to call "
"Tensor::mutable_data.");
"Tensor::mutable_data. Call Tensor::set_dim first.");
if (holder_ == nullptr ||
!(holder_->place() ==
place) /* some versions of boost::variant don't have operator!= */
Expand Down

0 comments on commit 57a22db

Please sign in to comment.