提交 5e04b64f 编写于 作者: C chengduoZH

refine elementwise

上级 5ac72d95
...@@ -103,10 +103,12 @@ class MidWiseTransformIterator<T, platform::CPUDeviceContext> { ...@@ -103,10 +103,12 @@ class MidWiseTransformIterator<T, platform::CPUDeviceContext> {
MidWiseTransformIterator<T, platform::CPUDeviceContext>& operator++() { MidWiseTransformIterator<T, platform::CPUDeviceContext>& operator++() {
++j_; ++j_;
i_ = j_ / post_; if (UNLIKELY(j_ == post_)) {
if (UNLIKELY(i_ == n_)) { ++i_;
j_ = 0; if (UNLIKELY(i_ == n_)) {
i_ = 0; j_ = 0;
i_ = 0;
}
} }
return *this; return *this;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册