Skip to content

Commit d113590

Browse files
authored
Merge pull request #12180 from tpatejko/tpatejko/edit-distance-fix-in-mkldnn-sum
MKLDNN sum fix: remove in_place condition in loop with memory primitives
2 parents 968922b + b2b8b15 commit d113590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/sum_mkldnn_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class SumMKLDNNOpKernel : public paddle::framework::OpKernel<T> {
8888
input_format = memory::format::nc;
8989
}
9090

91-
for (int i = in_place ? 1 : 0; i < N; i++) {
91+
for (int i = 0; i < N; i++) {
9292
PADDLE_ENFORCE(in_vars[i]->IsType<LoDTensor>(),
9393
"all inputs must be all LoDTensors");
9494
auto& input = in_vars[i]->Get<LoDTensor>();

0 commit comments

Comments
 (0)