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

Function output_pack

tensorflow/python/ops/functional_ops.py:398–400  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

396 output_flatten = lambda x: nest.flatten(x) if output_is_sequence else [x]
397
398 def output_pack(x):
399 return (nest.pack_sequence_as(initializer, x)
400 if output_is_sequence else x[0])
401
402 elems_flat = input_flatten(elems)
403

Callers 2

computeFunction · 0.70
scanFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected