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

Commit

Permalink
revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaiBapchya committed Sep 12, 2019
1 parent 1411a42 commit dfcd599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/operator/mxnet_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ MSHADOW_XINLINE Shape<ndim> unravel(const index_t idx, const Shape<ndim>& shape)
Shape<ndim> ret;
#pragma unroll
for (index_t i = ndim-1, j = idx; i >=0; --i) {
index_t tmp = j / shape[i];
auto tmp = j / shape[i];
ret[i] = j - tmp*shape[i];
j = tmp;
}
Expand Down
4 changes: 2 additions & 2 deletions src/operator/sequence_last.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ template <>
Operator *CreateOp<cpu>(SequenceLastParam param, int dtype, int itype) {
Operator *op = nullptr;
MSHADOW_TYPE_SWITCH(dtype, DType, {
MSHADOW_TYPE_SWITCH(itype, IType, {
MSHADOW_TYPE_SWITCH(itype, IType, {
op = new SequenceLastOp<cpu, DType, IType>(param);
});
});
});
return op;
}
Expand Down

0 comments on commit dfcd599

Please sign in to comment.