From 893bf9d3683e3d20a3dd7578b853989febece1d3 Mon Sep 17 00:00:00 2001 From: Benjamin Lecaillon <84293038+blecaillon@users.noreply.github.com> Date: Thu, 4 May 2023 23:49:01 +0200 Subject: [PATCH] Line 698 has one #staticmethod and should not otherwise throw error at unpickle.load() as not callable --- convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.py b/convert.py index c817a343e..3bca6337e 100644 --- a/convert.py +++ b/convert.py @@ -695,7 +695,7 @@ class LazyUnpickler(pickle.Unpickler): description = f'storage data_type={data_type} path-in-zip={filename} path={self.zip_file.filename}' return LazyStorage(load=load, kind=pid[1], description=description) - @staticmethod + # @staticmethod def lazy_rebuild_tensor_v2(storage: Any, storage_offset: Any, size: Any, stride: Any, # pyright: ignore[reportSelfClsParameterName] requires_grad: Any, backward_hooks: Any, metadata: Any = None) -> LazyTensor: assert isinstance(storage, LazyStorage)