Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Allow crop to be on lhs
Browse files Browse the repository at this point in the history
Allow `crop(a, ...) = b` expression.
  • Loading branch information
pluskid authored Oct 17, 2016
1 parent 4d70c0e commit 2458725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mshadow/extension/slice_ex.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct Plan<SliceExExp<SrcExp, Device, DType, srcdim>, DType> {
}
return src_.Eval(idx, j + begin_[srcdim-1]);
}
MSHADOW_XINLINE DType &REval(index_t i, index_t j) const {
MSHADOW_XINLINE DType &REval(index_t i, index_t j) {
index_t idx = 0;
index_t stride = 1;
#pragma unroll
Expand Down

0 comments on commit 2458725

Please sign in to comment.