MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / training_step

Method training_step

python/oneflow/framework/model.py:206–209  ·  view source on GitHub ↗

Operates on a single batch of data from the training set and return loss.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

204 raise NotImplementedError
205
206 def training_step(self, *args, **kwargs):
207 """Operates on a single batch of data from the training set and return loss.
208 """
209 raise NotImplementedError()
210
211 def validation_step(self, *args, **kwargs):
212 """Operates on a single batch of data from the validation set.

Callers 2

jobMethod · 0.80
stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected