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

Method step_fn

tensorflow/python/distribute/metrics_v1_test.py:104–108  ·  view source on GitHub ↗
(ctx, inputs)

Source from the content-addressed store, hash-verified

102 if isinstance(distribution, (tpu_strategy.TPUStrategy,
103 tpu_strategy.TPUStrategyV1)):
104 def step_fn(ctx, inputs):
105 value, update = distribution.extended.call_for_each_replica(
106 metric_fn, args=(inputs,))
107 ctx.set_non_tensor_output(name="value", output=value)
108 return distribution.group(update)
109
110 ctx = distribution.extended.experimental_run_steps_on_iterator(
111 step_fn, iterator, iterations=distribution.extended.steps_per_run)

Callers

nothing calls this directly

Calls 3

call_for_each_replicaMethod · 0.80
set_non_tensor_outputMethod · 0.80
groupMethod · 0.45

Tested by

no test coverage detected