Fix clip output var dtype (#27029)

numel
Yang Zhang 5 years ago committed by GitHub
parent 9aa39584fe
commit 92530ca445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1616,7 +1616,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)

Loading…
Cancel
Save