Solved by ptrblck in post #4 
              
              
                It seems 
torch.load(‘C:/Users/deonh/Pictures/Summer Work/xrays/PythonApplication1/scans’)

returns the state_dict of the model, not the model instance itself. 
You would have to create the model instance before and load the state_dict afterwards. 
Here is a small code snippet: 
model = MyModel() # …