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

Method train

tensorflow/python/distribute/hvd_strategy.py:1086–1095  ·  view source on GitHub ↗

r'''support sync_dataset in training.

(
                self, input_fn, hooks=None, max_steps=None, saving_listeners=None)

Source from the content-addressed store, hash-verified

1084 '''
1085
1086 def train(
1087 self, input_fn, hooks=None, max_steps=None, saving_listeners=None):
1088 r'''support sync_dataset in training.
1089 '''
1090 if saving_listeners is None:
1091 saving_listeners = []
1092 with scope():
1093 return super().train(
1094 input_fn, hooks=hooks, max_steps=max_steps,
1095 saving_listeners=saving_listeners)
1096
1097 def evaluate(self,
1098 input_fn,

Callers 7

train_and_evaluateMethod · 0.95
testDoNotRestoreMethod · 0.45
mainFunction · 0.45
_worker_fnFunction · 0.45

Calls 1

scopeFunction · 0.85

Tested by 4

testDoNotRestoreMethod · 0.36