MCPcopy
hub / github.com/deepspeedai/DeepSpeed / test_step

Method test_step

tests/lightning/test_simple.py:43–45  ·  view source on GitHub ↗
(self, batch, batch_idx)

Source from the content-addressed store, hash-verified

41 self.log("valid_loss", loss)
42
43 def test_step(self, batch, batch_idx):
44 loss = self(batch).sum()
45 self.log("test_loss", loss)
46
47 def configure_optimizers(self):
48 return torch.optim.SGD(self.layer.parameters(), lr=0.1)

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected