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

Commit

Permalink
fix incorrect nidex type
Browse files Browse the repository at this point in the history
  • Loading branch information
apeforest committed Aug 21, 2019
1 parent b9f9cac commit 3a1d25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdparty/mshadow/mshadow/tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ struct Tensor: public TRValue<Tensor<Device, dimension, DType>,
* \param idx index
* \return the result tensor
*/
MSHADOW_XINLINE Tensor<Device, kSubdim, DType> operator[](int idx) const {
MSHADOW_XINLINE Tensor<Device, kSubdim, DType> operator[](index_t idx) const {
return Tensor<Device, kSubdim, DType>(dptr_ + this->MemSize<1>() * idx,
shape_.SubShape(), stride_, stream_);
}
Expand Down

0 comments on commit 3a1d25a

Please sign in to comment.