From 3e0a37d1c3f8b86dd8340a2dc15b81cdf33b0da5 Mon Sep 17 00:00:00 2001 From: SunAhong1993 Date: Fri, 18 Sep 2020 14:40:46 +0800 Subject: [PATCH] fix the interpolate --- x2paddle/op_mapper/pytorch2paddle/aten.py | 1 + 1 file changed, 1 insertion(+) diff --git a/x2paddle/op_mapper/pytorch2paddle/aten.py b/x2paddle/op_mapper/pytorch2paddle/aten.py index d49f268..17798f5 100644 --- a/x2paddle/op_mapper/pytorch2paddle/aten.py +++ b/x2paddle/op_mapper/pytorch2paddle/aten.py @@ -3912,6 +3912,7 @@ def aten_upsample_bilinear2d(mapper, graph, node): type="eq") layer_inputs["scale_factor"] = inputs_name[3] layer_attrs["align_mode"] = 0 + layer_attrs["mode"] = "bilinear" graph.add_layer( "paddle.nn.functional.interpolate", inputs=layer_inputs, -- GitLab