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

Function _create_zero_outputs

tensorflow/contrib/seq2seq/python/ops/decoder.py:274–279  ·  view source on GitHub ↗

Create a zero outputs Tensor structure.

(size, dtype, batch_size)

Source from the content-addressed store, hash-verified

272
273
274def _create_zero_outputs(size, dtype, batch_size):
275 """Create a zero outputs Tensor structure."""
276 def _create(s, d):
277 return _zero_state_tensors(s, batch_size, d)
278
279 return nest.map_structure(_create, size, dtype)
280
281
282def dynamic_decode(decoder,

Callers 1

dynamic_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected