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

Class Step

tensorflow/python/distribute/step_fn.py:25–42  ·  view source on GitHub ↗

Interface for performing each step of a training algorithm.

Source from the content-addressed store, hash-verified

23
24
25class Step(object):
26 """Interface for performing each step of a training algorithm."""
27
28 def __init__(self, distribution):
29 self._distribution = distribution
30
31 @property
32 def distribution(self):
33 return self._distribution
34
35 def initialize(self):
36 return []
37
38 def __call__(self):
39 """Perform one step of this training algorithm."""
40 raise NotImplementedError("must be implemented in descendants")
41
42 # TODO(priyag): Add an method to access initialization and finalize ops.
43
44
45class StandardInputStep(Step):

Callers 5

DecodeMethod · 0.85
StepOrDieMethod · 0.85
StepOnceMethod · 0.85
StepAndResetMethod · 0.85
DecodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected