未验证 提交 29493ff0 编写于 作者: L liu zhengxi 提交者: GitHub

fix rnncell errmsg (#26298) (#26501)

上级 b2432b2c
......@@ -126,7 +126,8 @@ class RNNCell(object):
else:
integer_types = (int, )
check_variable_and_dtype(batch_ref, 'batch_ref',
['float32', 'float64'], 'RNNCell')
['float32', 'float64', 'int32', 'int64'],
'RNNCell')
check_type(shape, 'shape', (list, tuple, type(None), integer_types),
'RNNCell')
if isinstance(shape, (list, tuple)):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册