Skip to content

Shortuct for traing and testing loop #299

Answered by mrdbourke
zillur-av asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @zillur-av,

Good question!

Yes there is a few options for this:

  1. Create your own functions for PyTorch training/testing loops, as seen here: https://www.learnpytorch.io/05_pytorch_going_modular/
  2. Use a framework such as Lightning AI or FastAI or MosaicML to do the training loop for you

Otherwise, there's no native model.fit() inside PyTorch (I'm pretty sure this is by design, to add as much hackability to PyTorch as possible).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mrdbourke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants