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
The neuralprophet.utils.save function accepts a path:str as the second argument.
This makes me believe that I can only save to a file. However upon looking at the code, it actually
just passes the path to torch.save's f parameter, which accepts io.BytesIO buffer.
The
neuralprophet.utils.save
function accepts apath:str
as the second argument.This makes me believe that I can only save to a file. However upon looking at the code, it actually
just passes the
path
totorch.save
'sf
parameter, which accepts io.BytesIO buffer.Specifically, torch.save supports the type: Union[str, PathLike, BinaryIO, IO[bytes]]
This means it is already possible to use utils.save to write to memory. But the typehints and doc doesn't state that.
The text was updated successfully, but these errors were encountered: