Update convert.py

This commit is contained in:
Ivan Stepanov 2023-05-05 03:06:26 +03:00 committed by GitHub
parent 893bf9d368
commit b05ec02a1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -706,7 +706,7 @@ class LazyUnpickler(pickle.Unpickler):
description = f'pickled storage_offset={storage_offset} in {storage.description}'
return LazyTensor(load, list(size), storage.kind.data_type, description)
@staticmethod
# @staticmethod
def rebuild_from_type_v2(func, new_type, args, state):
return func(*args)