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 8631e79 + e76eb85 commit 0f42e56Copy full SHA for 0f42e56
paddle/gserver/layers/SwitchOrderLayer.cpp
@@ -83,8 +83,7 @@ void SwitchOrderLayer::forward(PassType passType) {
83
setOutDims();
84
resetOutput(outDims_[0], outDims_[1] * outDims_[2] * outDims_[3]);
85
if (heightAxis_.size() > 0) {
86
- getOutputValue()->reshape(reshapeHeight_, reshapeWidth_);
87
- getOutputGrad()->reshape(reshapeHeight_, reshapeWidth_);
+ resetOutput(reshapeHeight_, reshapeWidth_);
88
}
89
90
// switch NCHW to NHWC
0 commit comments