diff --git a/paddle/fluid/inference/tensorrt/convert/bilinear_interp_v2_op.cc b/paddle/fluid/inference/tensorrt/convert/bilinear_interp_v2_op.cc index f0e56082b8f77dba670b41c7491bf2aa501acc3f..e303e198888096e97590957ba503c3a462fcfe2d 100644 --- a/paddle/fluid/inference/tensorrt/convert/bilinear_interp_v2_op.cc +++ b/paddle/fluid/inference/tensorrt/convert/bilinear_interp_v2_op.cc @@ -60,8 +60,8 @@ class BilinearInterpolateV2OpConverter : public OpConverter { } auto in_dim = input->getDimensions(); - float scale_h = 1.f; - float scale_w = 1.f; + float scale_h = -1.f; + float scale_w = -1.f; // Scales Priority: Scale(tensor) > scale(attr) > out_d/out_h/out_w(attr) bool has_scale_input_attr =