未验证 提交 873da75a 编写于 作者: Y Yang Zhang 提交者: GitHub

Fix clip output var dtype (#27030)

上级 b46e8070
...@@ -1608,7 +1608,7 @@ def clip(x, min=None, max=None, name=None): ...@@ -1608,7 +1608,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.
先完成此消息的编辑!
想要评论请 注册