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

refine elementwise

上级 5ac72d95
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册