提交 e0ef42ab 编写于 作者: D Dong Zhihong

"fix ci"

上级 84835784
...@@ -144,13 +144,9 @@ class ReduceKernel : public framework::OpKernel<T> { ...@@ -144,13 +144,9 @@ class ReduceKernel : public framework::OpKernel<T> {
if (D == 1) { if (D == 1) {
auto out = EigenScalar<T>::From(*output); auto out = EigenScalar<T>::From(*output);
// auto out = EigenTensor<T, 1>::From(*output, dims);
VLOG(0) << "x dims : " << x.rank() << " out dims : " << out.rank();
functor(place, x, out, reduce_dim); functor(place, x, out, reduce_dim);
} else { } else {
auto out = EigenTensor<T, (D - 1)>::From(*output, dims); auto out = EigenTensor<T, (D - 1)>::From(*output, dims);
// VLOG(0) << "x dims : "<< x.dimensions().size() << " out dims : "
// << out.dimensions().size();
functor(place, x, out, reduce_dim); functor(place, x, out, reduce_dim);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册