Merge pull request #5514 from pkuyym/fix-5513

Bug fix for ScaleSubRegionLayer
mobile_baidu
Yang yaming 8 years ago committed by GitHub
commit 9876bb0952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,7 +49,7 @@ void ScaleSubRegionLayer::forward(PassType passType) {
shape_ = TensorShape({batchSize, channelsNum_, imgH_, imgW_}); shape_ = TensorShape({batchSize, channelsNum_, imgH_, imgW_});
resetOutput(batchSize, imgV->getWidth()); resetOutput(batchSize, imgV->getWidth());
auto out = getOutput(); auto& out = getOutput();
out.setFrameHeight(imgH_); out.setFrameHeight(imgH_);
out.setFrameWidth(imgW_); out.setFrameWidth(imgW_);

Loading…
Cancel
Save