未验证 提交 92530ca4 编写于 作者: Y Yang Zhang 提交者: GitHub

Fix clip output var dtype (#27029)

上级 9aa39584
...@@ -1616,7 +1616,7 @@ def clip(x, min=None, max=None, name=None): ...@@ -1616,7 +1616,7 @@ def clip(x, min=None, max=None, name=None):
helper = LayerHelper('clip', **locals()) helper = LayerHelper('clip', **locals())
output = helper.create_variable_for_type_inference( output = helper.create_variable_for_type_inference(
dtype=helper.input_dtype()) dtype=helper.input_dtype('x'))
helper.append_op( helper.append_op(
type='clip', inputs=inputs, outputs={'Out': [output]}, attrs=attrs) type='clip', inputs=inputs, outputs={'Out': [output]}, attrs=attrs)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册