diff --git a/x2paddle/op_mapper/onnx2paddle/opset9/opset.py b/x2paddle/op_mapper/onnx2paddle/opset9/opset.py index 9ffe233161627b2c549446dbec87427b0f4443e3..5aaa81d153d7e361d800c2c6224b05853b5409bb 100755 --- a/x2paddle/op_mapper/onnx2paddle/opset9/opset.py +++ b/x2paddle/op_mapper/onnx2paddle/opset9/opset.py @@ -518,6 +518,8 @@ class OpSet9(): if pads is not None: is_pads_attr = True mode = node.get_attr('mode', 'constant') + if mode in ["edge"]: + mode = "replicate" value = node.get_attr('value', 0.) data_shape = val_x.out_shapes[0] output_shape = node.out_shapes[0]