Bump version of Python, torch and pytorch-lightning #58
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I would like to extend the compatibility with Python 3.11, torch 2.1, and pytorch-lightning 2.1.3.
One fix was easy to make (e.g. change training_epoch_end into
on_training_epoch_end
).Another fix was about errors appearing for a mismatch of data type in the parameters of masked_scatter and scatter_add. They are probably related to these open issues: #81876, #115821.
For now, my solution is not very elegant, which is to force the data to be float32 the two times time it's passed to the functions.
Finally, this PR is still a draft because I cannot understand another error popping up:
I cannot find any definition of frobenius_norm_change in the code, nor in Pytorch or Pytorch Lightning, so I don't know how to solve the error.