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

Function enumerated_fn

tensorflow/python/ops/rnn_cell_wrapper_impl.py:503–506  ·  view source on GitHub ↗
(*inner_args, **inner_kwargs)

Source from the content-addressed store, hash-verified

501 ix = [0]
502
503 def enumerated_fn(*inner_args, **inner_kwargs):
504 r = map_fn(ix[0], *inner_args, **inner_kwargs)
505 ix[0] += 1
506 return r
507
508 return nest.map_structure_up_to(shallow_structure, enumerated_fn, *args,
509 **kwargs)

Callers

nothing calls this directly

Calls 1

map_fnFunction · 0.70

Tested by

no test coverage detected