diff --git a/x2paddle/op_mapper/tf_op_mapper.py b/x2paddle/op_mapper/tf_op_mapper.py index 82e2694f1745874c9256921be66f22300e0236e1..a2e8ec0e78c20b1c8d1028a3b558e1dfc97ebe11 100644 --- a/x2paddle/op_mapper/tf_op_mapper.py +++ b/x2paddle/op_mapper/tf_op_mapper.py @@ -912,7 +912,9 @@ class TFOpMapper(OpMapper): # shape=shape) # inputs['shape'] = reshape_name -# inputs.pop('shape') + for i, s in enumerate(shape): + if s < 0: + shape[i] = 32767 program.add_layer( kernel="fluid.layers.slice", inputs=inputs,