fix rnncell errmsg (#26298)

revert-24895-update_cub
liu zhengxi 5 years ago committed by GitHub
parent 79f12595d8
commit daad625121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,7 +127,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)):

Loading…
Cancel
Save