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

Method test_step

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

Source from the content-addressed store, hash-verified

1320 return all_loss_dict
1321
1322 def test_step(
1323 self,
1324 epoch: int,
1325 bidx: int,
1326 batch: T.Any,
1327 ):
1328 self.reset_losses()
1329 self.reset_outputs()
1330
1331 with torch.no_grad():
1332 all_loss_dict = self._step(
1333 epoch=epoch,
1334 bidx=bidx,
1335 batch=batch,
1336 update=False,
1337 )
1338 return all_loss_dict
1339
1340 def visualize_train_step(
1341 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