MCPcopy Index your code
hub / github.com/apple/ml-pointersect / train_step

Method train_step

pointersect/script/train_v2.py:1286–1302  ·  view source on GitHub ↗
(
            self,
            epoch: int,
            bidx: int,
            batch: T.Any,
    )

Source from the content-addressed store, hash-verified

1284 setattr(self, name, None)
1285
1286 def train_step(
1287 self,
1288 epoch: int,
1289 bidx: int,
1290 batch: T.Any,
1291 ):
1292
1293 self.reset_losses()
1294 self.reset_outputs()
1295
1296 all_loss_dict = self._step(
1297 epoch=epoch,
1298 bidx=bidx,
1299 batch=batch,
1300 update=True,
1301 )
1302 return all_loss_dict
1303
1304 def validation_step(
1305 self,

Callers

nothing calls this directly

Calls 3

reset_lossesMethod · 0.95
reset_outputsMethod · 0.95
_stepMethod · 0.95

Tested by

no test coverage detected