未验证 提交 ddcc1002 编写于 作者: D duanyanhui 提交者: GitHub

update_npu_check_finite_and_unscale (#52914)

上级 6d7ee668
......@@ -54,14 +54,6 @@ def check_finite_and_unscale(x, scale, name=None, float_status=None):
)
inputs = {'X': x, 'Scale': scale}
if core.is_compiled_with_custom_device('npu'):
check_variable_and_dtype(
float_status,
"float_status",
['float16', 'float32'],
'check_finite_and_unscale',
)
inputs['FloatStatus'] = float_status
outputs = {'Out': x, 'FoundInfinite': found_inf}
helper.append_op(
type='check_finite_and_unscale', inputs=inputs, outputs=outputs
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册