diff --git a/python/paddle/tensor/math.py b/python/paddle/tensor/math.py index 0b72c91c83984bc41669fb9f1a6afad7bd166fda..e4a751ab5b8aa785bb7d27a1754dc8f6dc8261eb 100755 --- a/python/paddle/tensor/math.py +++ b/python/paddle/tensor/math.py @@ -1608,7 +1608,7 @@ def clip(x, min=None, max=None, name=None): helper = LayerHelper('clip', **locals()) output = helper.create_variable_for_type_inference( - dtype=helper.input_dtype()) + dtype=helper.input_dtype('x')) helper.append_op( type='clip', inputs=inputs, outputs={'Out': [output]}, attrs=attrs)