Python doesn't know the class attributes, while Jupyter does
Python doesn't know the class attributes, while Jupyter does Question: I have this code from StatQuest channel. This code works in Jupyter, however when I run this in a .py file, it reports the error AttributeError: ‘BasicNNTrain’ object has no attribute ‘w00’ This is the code: import torch import torch.nn as nn import torch.nn.functional as …