MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_mnist

Method test_mnist

tests/test_pytorch_lightning.py:65–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 dm = LitDataModule()
64 model = LitClassifier()
65 trainer = pl.Trainer(max_epochs=1, log_every_n_steps=1, devices=1)
66 trainer.fit(model, datamodule=dm)
67
68 self.assertIn("train_loss", trainer.logged_metrics)
69 self.assertIn("val_loss", trainer.logged_metrics)
70

Callers

nothing calls this directly

Calls 2

LitDataModuleClass · 0.85
LitClassifierClass · 0.85

Tested by

no test coverage detected