Torch.load OSError: [Errno 22] Invalid argument

@ptrblck_de It is is a very normal loading for a model and it was working very fine in my code, Today using torch.load('path_to_my_model ') through an error OSError: [Errno 22] Invalid argument Any insights about what is going on?

1 Like

Check if the path is containing any Unicode characters (e.g. by copying them from another IDE), if forward/backward slashes are mixed etc.

ok thanks it is working now