MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / epoch2iter

Function epoch2iter

train_utils.py:255–258  ·  view source on GitHub ↗
(epoch)

Source from the content-addressed store, hash-verified

253 ep = iter // iter_per_ep
254 return ep
255 def epoch2iter(epoch):
256 iter_per_ep = num_labels // batch_size
257 iter = epoch * iter_per_ep
258 return iter
259 def _lr_lambda(iter):
260 return None
261

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected