You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the last line in the script should read model.load_state_dict(torch.load("model.pth", weights_only=True))
With weights_only as a parameter of torch.load(), not model.load_state_dict()