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() # create model instance
state_dict = torch.load(‘C:/Users/deonh/Pictures/Summer Work/xrays/PythonApplication1/scans’) # load state_dict
model.load_state_dict(state_dict) # load state_dict into model