Skip to content

Instantly share code, notes, and snippets.

@tchaton
Created July 20, 2021 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tchaton/d39b007d071aa84e9c8a9e82fbcded85 to your computer and use it in GitHub Desktop.
Save tchaton/d39b007d071aa84e9c8a9e82fbcded85 to your computer and use it in GitHub Desktop.
import pytorch_lightning as pl
model = MyLightningModule()
trainer = pl.Trainer(tpu_cores=8)
trainer.fit(model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment