We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 968922b + b2b8b15 commit d113590Copy full SHA for d113590
paddle/fluid/operators/sum_mkldnn_op.cc
@@ -88,7 +88,7 @@ class SumMKLDNNOpKernel : public paddle::framework::OpKernel<T> {
88
input_format = memory::format::nc;
89
}
90
91
- for (int i = in_place ? 1 : 0; i < N; i++) {
+ for (int i = 0; i < N; i++) {
92
PADDLE_ENFORCE(in_vars[i]->IsType<LoDTensor>(),
93
"all inputs must be all LoDTensors");
94
auto& input = in_vars[i]->Get<LoDTensor>();
0 commit comments