Approaches to modeling

In Lesson 06_multicat, it initiated a code learn.model(x).
Screen Shot 2021-07-26 at 7.59.34 PM

I am not able to find a documentation for this ‘model’ term.

I was wondering why this step was needed, The previous lessons went straight to modeling from the DataBlock and dataloading steps. It did not pertain to a ‘model’ term.

Screen Shot 2021-07-26 at 7.58.40 PM

Is this because the variables are now in CPU?

Thank you!


This step is not needed and is just an example on how to access the resnet18 model in the learner.

the .model is the actual resnet18 model that is embedded in the Learner.
So here, you are just manually getting some x values “dls.train.one_batch()” and feeding it to the resnet18 to get the output of the model (aka activations)

See here were the model is in the code

I see it now, thank you!!