MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _is_multiple_state

Function _is_multiple_state

tensorflow/python/keras/layers/recurrent.py:2742–2745  ·  view source on GitHub ↗

Check whether the state_size contains multiple states.

(state_size)

Source from the content-addressed store, hash-verified

2740
2741
2742def _is_multiple_state(state_size):
2743 """Check whether the state_size contains multiple states."""
2744 return (hasattr(state_size, '__len__') and
2745 not isinstance(state_size, tensor_shape.TensorShape))
2746
2747
2748def _generate_zero_filled_state_for_cell(cell, inputs, batch_size, dtype):

Callers 4

output_sizeMethod · 0.85
buildMethod · 0.85
compute_output_shapeMethod · 0.85
buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected