|
|
@ -127,7 +127,8 @@ class RNNCell(object):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
integer_types = (int, )
|
|
|
|
integer_types = (int, )
|
|
|
|
check_variable_and_dtype(batch_ref, 'batch_ref',
|
|
|
|
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),
|
|
|
|
check_type(shape, 'shape', (list, tuple, type(None), integer_types),
|
|
|
|
'RNNCell')
|
|
|
|
'RNNCell')
|
|
|
|
if isinstance(shape, (list, tuple)):
|
|
|
|
if isinstance(shape, (list, tuple)):
|
|
|
|