Skip to content
Discussion options

You must be logged in to vote

Hi @choieq, training_step needs to return one of:

  • Tensor - The loss tensor
  • dict - A dictionary. Can include any keys, but must include the key 'loss'
  • None - Training will skip to the next batch

https://pytorch-lightning.readthedocs.io/en/latest/common/lightning_module.html#training-step

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@awaelchli
Comment options

@choieq
Comment options

Answer selected by akihironitta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment