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

Function tiled_loop_fn

tensorflow/python/ops/parallel_for/control_flow_ops.py:282–286  ·  view source on GitHub ↗
(i, pfor_config=None)

Source from the content-addressed store, hash-verified

280 offset = j * parallel_iterations + num_remaining_iterations
281
282 def tiled_loop_fn(i, pfor_config=None):
283 if loop_fn_has_config:
284 return nest.flatten(loop_fn(i + offset, pfor_config=pfor_config))
285 else:
286 return nest.flatten(loop_fn(i + offset))
287
288 return _pfor_impl(
289 tiled_loop_fn, parallel_iterations, pfor_config=pfor_config)

Callers

nothing calls this directly

Calls 2

loop_fnFunction · 0.70
flattenMethod · 0.45

Tested by

no test coverage detected