Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
change error info
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiyan66 committed Dec 31, 2019
1 parent a3ad246 commit 0eb9f68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/operator/numpy/np_matrix_op-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ void NumpyFlipForward(const nnvm::NodeAttrs& attrs,
std::vector<index_t> trailing_(axistemp.ndim());
index_t flip_index = 0;
for (int axis : axistemp) {
CHECK_LT(axis, ishape.ndim()) << "Input must be >= " << axis + 1 << "-d";
CHECK_LT(axis, ishape.ndim()) << "axis " << axis
<< " is out of bounds for array of dimension " << ishape.ndim() << std::endl;
stride_[flip_index] = ishape[axis];
trailing_[flip_index] = 1;
for (int i2 = axis + 1; i2 < ishape.ndim(); ++i2) {
Expand Down

0 comments on commit 0eb9f68

Please sign in to comment.