'NeuralNetwork' object has no attribute 'log' #10096
Answered
by
rohitgr7
cwoolfo1
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
Hello I am trying to train a neural network using pytorch lightning. I have run into an issue with the trainer when I try to run the program. I am getting the following issue:
I defined the logger for the trainer after I created an instance of the model class. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
rohitgr7
Oct 24, 2021
Replies: 2 comments
-
did you pass in a lightningmodule instance? class YourModel(pl.LightningModule): <- here?
... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rohitgr7
-
That was the mistake. Thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
did you pass in a lightningmodule instance?