未验证 提交 5a864270 编写于 作者: G Guoxia Wang 提交者: GitHub

add uint16 for bfloat16 dtype check in layer_norm under static mode (#52845)

上级 edd578a1
......@@ -337,7 +337,7 @@ def layer_norm(
else:
check_variable_and_dtype(
x, 'input', ['float16', 'float32', 'float64'], 'LayerNorm'
x, 'input', ['uint16', 'float16', 'float32', 'float64'], 'LayerNorm'
)
inputs = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册