revert-12469-sum_op_dim_fix
tangwei12 7 years ago
parent 479a443f68
commit ac9ae97001

@ -186,7 +186,7 @@ class SumMKLDNNOpKernel : public paddle::framework::OpKernel<T> {
} }
if (in_dim.empty()) { if (in_dim.empty()) {
VLOG(3) << "WARNING: all the inputs are empty" VLOG(3) << "WARNING: all the inputs are empty";
} }
in_dim[0] = static_cast<int64_t>(first_dim); in_dim[0] = static_cast<int64_t>(first_dim);

@ -115,7 +115,7 @@ class SumKernel : public framework::OpKernel<T> {
} }
} }
if (in_dim.empty()) { if (in_dim.empty()) {
VLOG(3) << "WARNING: all the inputs are empty" VLOG(3) << "WARNING: all the inputs are empty";
} }
in_dim[0] = static_cast<int64_t>(first_dim); in_dim[0] = static_cast<int64_t>(first_dim);

Loading…
Cancel
Save