Merge pull request #4045 from chengduoZH/fix_SwitchOrderLayer

fix SwitchOrderLayer forward
enforce_failed
whs 8 years ago committed by GitHub
commit 0f42e5649e

@ -83,8 +83,7 @@ void SwitchOrderLayer::forward(PassType passType) {
setOutDims();
resetOutput(outDims_[0], outDims_[1] * outDims_[2] * outDims_[3]);
if (heightAxis_.size() > 0) {
getOutputValue()->reshape(reshapeHeight_, reshapeWidth_);
getOutputGrad()->reshape(reshapeHeight_, reshapeWidth_);
resetOutput(reshapeHeight_, reshapeWidth_);
}
// switch NCHW to NHWC

Loading…
Cancel
Save