training_step not defined, but it is implemented #8264
Unanswered
thistlillo
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
Hmm, this is very odd. I can't see anything obviously wrong with your definitions. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Unfortunately, I cannot provide a complete running script due to the way the code is organized, but I will try to provide as many details as possible. The error I am getting is:
That is generated in
ConfigValidator
, specifically at:I modified the function
is_overriden(.)
to add some outputs (see the commentXXX MOD HERE
):Its output is:
I will now show how the classes are organized. First the model, that is a VGG:
Data is provided by a
DataModule
:The
DataModule
relies on a pytorchDataset
, whosegetitem
is:Then there is the script for training:
I am aware if is very hard to help without running a sample code, but can you please suggest me what I should search in order to understand the cause of this strange error message? All of the previous code (training step, data loading, etc) run fine in pure pytorch.
Beta Was this translation helpful? Give feedback.
All reactions