Niki:

result = self.forward(*input, **kwargs)


given the snippets you provided it is unclear to me what you did when you tried to forward the net.
pretrained=True/False flag wouldn’t be the cause of the complaints.
Did you called result = net(X) for calling forward pass?
It looks like you are missing the input to be fed to the net’s forward.