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

Function _create_zero_arrays

tensorflow/python/ops/rnn.py:794–797  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

792
793 # Prepare dynamic conditional copying of state & output
794 def _create_zero_arrays(size):
795 size = _concat(batch_size, size)
796 return array_ops.zeros(
797 array_ops.stack(size), _infer_state_dtype(dtype, state))
798
799 flat_zero_output = tuple(
800 _create_zero_arrays(output) for output in flat_output_size)

Callers 1

_dynamic_rnn_loopFunction · 0.70

Calls 3

_concatFunction · 0.85
_infer_state_dtypeFunction · 0.70
stackMethod · 0.45

Tested by

no test coverage detected