MCPcopy Create free account
hub / github.com/alibaba/bigcomputing / _create_zero_arrays

Function _create_zero_arrays

DIEN/rnn.py:696–699  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

694
695 # Prepare dynamic conditional copying of state & output
696 def _create_zero_arrays(size):
697 size = _concat(batch_size, size)
698 return array_ops.zeros(
699 array_ops.stack(size), _infer_state_dtype(dtype, state))
700
701 flat_zero_output = tuple(_create_zero_arrays(output)
702 for output in flat_output_size)

Callers 1

_dynamic_rnn_loopFunction · 0.85

Calls 1

_infer_state_dtypeFunction · 0.85

Tested by

no test coverage detected