You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trainer() class contains keyword arguments that no longer exist in Pytorch Lightning Trainer class (such as gpus).
Even when these errors are corrected, attempting to train the model causes the following error: (TPU) Exception in device=TPU:6: element 0 of tensors does not require grad and does not have a grad_fn (GPU) Runtime Error: element 0 of tensors does not require grad and does not have a grad_fn
To Reproduce
Steps to reproduce the behavior:
Try to train the model.
Expected behavior
To train the model :)
The text was updated successfully, but these errors were encountered:
@rajkumarjayaprakash97 the trainer class issues are easily fixed by simply removing the deprecated keyword arguments from the class (it's toward the end). But I have no idea how to fix the grad_fn problem. Based on my research, it seems to have something to do with the way loss is handled in the LightningModel class (based on LightningModule) but I honestly don't know what is wrong or how to fix it. I tried variations of torch.no_grad but that didn't help.
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Try to train the model.
Expected behavior
To train the model :)
The text was updated successfully, but these errors were encountered: