MCPcopy Create free account
hub / github.com/SHAILAB-IPEC/OpenFly-Platform / set_epoch

Method set_epoch

train/datasets/data_utils.py:425–427  ·  view source on GitHub ↗

To be called *between* epochs, prior to DataLoader instantiation; ensures random order across epochs.

(self, epoch: int)

Source from the content-addressed store, hash-verified

423 return self.num_samples
424
425 def set_epoch(self, epoch: int) -> None:
426 """To be called *between* epochs, prior to DataLoader instantiation; ensures random order across epochs."""
427 self.epoch = epoch
428
429
430# ruff: noqa: B023

Callers 1

run_trainingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected