From e3c2421b9f06e769bde6b5ca92f32c18ae756907 Mon Sep 17 00:00:00 2001 From: Ivan Stepanov Date: Thu, 4 May 2023 13:49:15 +0300 Subject: [PATCH] Update convert.py remove useless comment --- convert.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/convert.py b/convert.py index e639851bc..c1f7a2281 100644 --- a/convert.py +++ b/convert.py @@ -709,9 +709,7 @@ class LazyUnpickler(pickle.Unpickler): @staticmethod def rebuild_from_type_v2(func, new_type, args, state): - # import torch; return torch._tensor._rebuild_from_type_v2(func, new_type, args, state) - ret = func(*args) - return ret + return func(*args) CLASSES: Dict[Any, Any] = { ('torch._tensor', '_rebuild_from_type_v2'): rebuild_from_type_v2,