diff --git a/paddle/gserver/layers/DetectionOutputLayer.cpp b/paddle/gserver/layers/DetectionOutputLayer.cpp index 570117de6543d3e56d93f626f527c83d3d6d263f..274619ec608c8a7272dc9a942ee3aeca9a83878f 100644 --- a/paddle/gserver/layers/DetectionOutputLayer.cpp +++ b/paddle/gserver/layers/DetectionOutputLayer.cpp @@ -143,8 +143,7 @@ void DetectionOutputLayer::forward(PassType passType) { resetOutput(numKept, 7); } else { MatrixPtr outV = getOutputValue(); - if (outV) - outV->resize(0,0); + if (outV) outV->resize(0,0); return; } MatrixPtr outV = getOutputValue();