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

Function input_pack

tensorflow/python/ops/ragged/ragged_map_ops.py:196–197  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

194 input_flatten = lambda x: nest.flatten(x) if input_is_sequence else [x]
195
196 def input_pack(x):
197 return nest.pack_sequence_as(elems, x) if input_is_sequence else x[0]
198
199 elems_flat = input_flatten(elems)
200 elems_flat = ragged_tensor.match_row_splits_dtypes(*elems_flat)

Callers 2

map_fnFunction · 0.70
computeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected