未验证 提交 f36c4da5 编写于 作者: F feifei-111 提交者: GitHub

add float16 (#45216)

上级 c93451f4
......@@ -2416,7 +2416,7 @@ def cross_entropy(input,
out = paddle.squeeze(out, axis=axis)
return out
check_variable_and_dtype(input, 'input', ['float32', 'float64'],
check_variable_and_dtype(input, 'input', ['float16', 'float32', 'float64'],
'softmax_cross_entropy')
check_variable_and_dtype(
label, 'label',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册