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

Commit dfcd599

Browse files
committed
revert unnecessary changes
1 parent 1411a42 commit dfcd599

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/operator/mxnet_op.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ MSHADOW_XINLINE Shape<ndim> unravel(const index_t idx, const Shape<ndim>& shape)
499499
Shape<ndim> ret;
500500
#pragma unroll
501501
for (index_t i = ndim-1, j = idx; i >=0; --i) {
502-
index_t tmp = j / shape[i];
502+
auto tmp = j / shape[i];
503503
ret[i] = j - tmp*shape[i];
504504
j = tmp;
505505
}

src/operator/sequence_last.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ template <>
3131
Operator *CreateOp<cpu>(SequenceLastParam param, int dtype, int itype) {
3232
Operator *op = nullptr;
3333
MSHADOW_TYPE_SWITCH(dtype, DType, {
34-
MSHADOW_TYPE_SWITCH(itype, IType, {
34+
MSHADOW_TYPE_SWITCH(itype, IType, {
3535
op = new SequenceLastOp<cpu, DType, IType>(param);
36-
});
36+
});
3737
});
3838
return op;
3939
}

0 commit comments

Comments
 (0)