diff --git a/x2paddle/op_mapper/paddle2onnx/opset9/opset.py b/x2paddle/op_mapper/paddle2onnx/opset9/opset.py index ec72b10fa738ba5206cc0cbf1a85fe651be70969..d36a2887f2cb9ab391caaaf0aab0428842802d76 100644 --- a/x2paddle/op_mapper/paddle2onnx/opset9/opset.py +++ b/x2paddle/op_mapper/paddle2onnx/opset9/opset.py @@ -562,15 +562,6 @@ class OpSet9(object): keepdims=op.attr('keep_dim')) return node - def cast(self, op, block): - dtype = op.attr('out_dtype') - node = helper.make_node( - 'Cast', - inputs=op.input('X'), - outputs=op.output('Out'), - to=self.paddle_onnx_dtype_map[dtype]) - return node - def bilinear_interp(self, op, block): input_names = op.input_names input_shape = block.vars[op.input('X')[0]].shape