diff --git a/x2paddle/decoder/onnx_shape_inference.py b/x2paddle/decoder/onnx_shape_inference.py index dae2d0268a00dcac0b1d4a6c796f55431a985ad3..910bf2dbfead6f5ec292af1302926fff02315cf3 100644 --- a/x2paddle/decoder/onnx_shape_inference.py +++ b/x2paddle/decoder/onnx_shape_inference.py @@ -267,9 +267,8 @@ class SymbolicShapeInference: if pending_nodes and self.verbose_ > 0: print('SymbolicShapeInference: orphaned nodes discarded: ') - print( - * [n.op_type + ': ' + n.output[0] for n in pending_nodes], - sep='\n') + print('\n'.join( + [n.op_type + ': ' + n.output[0] for n in pending_nodes])) if input_shapes is not None: for input_name, shape in input_shapes.items(): for idx in range(len(self.out_mp_.graph.input)):