diff --git a/x2paddle/op_mapper/tf_op_mapper.py b/x2paddle/op_mapper/tf_op_mapper.py index 1fd0a4ebe0222765090d7f860dc03ec71dbd5de5..d2ed2944fd257df2ef0e5cfc7e5451abde6245aa 100644 --- a/x2paddle/op_mapper/tf_op_mapper.py +++ b/x2paddle/op_mapper/tf_op_mapper.py @@ -545,7 +545,7 @@ class TFOpMapper(OpMapper): program.add_layer( kernel="fluid.layers.pad", - inputs={"input": input.name}, + inputs={"x": input.name}, outputs=[node.name], paddings=paddings)