refine elementwise

del_some_in_makelist
chengduoZH 7 years ago
parent 5ac72d9501
commit 5e04b64fa0

@ -103,11 +103,13 @@ class MidWiseTransformIterator<T, platform::CPUDeviceContext> {
MidWiseTransformIterator<T, platform::CPUDeviceContext>& operator++() {
++j_;
i_ = j_ / post_;
if (UNLIKELY(j_ == post_)) {
++i_;
if (UNLIKELY(i_ == n_)) {
j_ = 0;
i_ = 0;
}
}
return *this;
}

Loading…
Cancel
Save