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

Function input_pack

tensorflow/python/ops/map_fn.py:174–175  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

172 input_is_sequence = nest.is_sequence(elems)
173 input_flatten = lambda x: nest.flatten(x) if input_is_sequence else [x]
174 def input_pack(x):
175 return nest.pack_sequence_as(elems, x) if input_is_sequence else x[0]
176
177 if dtype is None:
178 output_is_sequence = input_is_sequence

Callers 2

map_fnFunction · 0.70
computeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected