I’m trying to find a way to download a saved pytorch model hosted on Dropbox and load it into pytorch. I can’t save or write a file to the server that is running pytorch. I tried to download the torch model with the code below and got a attribute error. Any other ideas do load a model without writing to a file?
AttributeError : ‘int’ object has no attribute ‘seek’. You can only torch.load from a file that is seekable. Please pre-load the data into a buffer like io.BytesIO and try to load from it instead.
Also, when trying to use torch.as_tensor, I get the following error.
During the algorithm initialization, the following exception has occurred: RuntimeError : Overflow when
unpacking long
at Initialize in main.py:line 26
:: self.agent.actor_local.load_state_dict(torch.as_tensor(actor))
RuntimeError : Overflow when unpacking long