Skip to content

Commit

Permalink
Fix the error function/GemmConvOp.
Browse files Browse the repository at this point in the history
  • Loading branch information
qingqing01 committed Dec 15, 2017
1 parent 0fce0fe commit 3496092
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions paddle/function/GemmConvOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ class GemmConvFunction : public ConvFunctionBase {
inputData += inputChannels * inputHeight * inputWidth;
outputData += outputChannels * outputHeight * outputWidth;
}
#ifdef PADDLE_MOBILE_INFERENCE
if (Device == DEVICE_TYPE_CPU) {
delete memory_;
}
#endif
}
};

Expand Down Expand Up @@ -233,11 +238,6 @@ class GemmConvGradInputFunction : public ConvFunctionBase {
inputGrad += inputChannels * inputHeight * inputWidth;
outputGrad += outputChannels * outputHeight * outputWidth;
}
#ifdef PADDLE_MOBILE_INFERENCE
if (Device == DEVICE_TYPE_CPU) {
delete memory_;
}
#endif
}
};

Expand Down

0 comments on commit 3496092

Please sign in to comment.