Skip to content

Commit

Permalink
Merge branch 'master' into feature_dynamic_dims
Browse files Browse the repository at this point in the history
* master:
  [CONVERTER2TNN][UPD] 1. default do not clean build directory; (#694)
  Feature fp16 arm32 (#690)
  pose demo (#665)

# Conflicts:
#	examples/base/tnn_sdk_sample.cc
#	source/tnn/layer/upsample_layer.cc
#	tools/convert2tnn/utils/align_model.py
  • Loading branch information
darrenyao87 committed Jan 4, 2021
1 parent 9b30550 commit f231dfe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions source/tnn/layer/upsample_layer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ Status UpsampleLayer::InferOutputShape() {
int width_out = 0;
int height_out = 0;

<<<<<<< HEAD
if (layer_param->mode == 1 || layer_param->mode == 2) {
// floor is wrong for some model
=======
if (layer_param->mode == 1 || layer_param->mode == 2 || layer_param->mode == 3) {
//floor is wrong for some model
>>>>>>> master
width_out = int(round(width * layer_param->scales[0]));
height_out = int(round(height * layer_param->scales[1]));
} else {
Expand Down

0 comments on commit f231dfe

Please sign in to comment.