Update convert.py
remove useless comment
This commit is contained in:
parent
dd8902d3e4
commit
e3c2421b9f
1 changed files with 1 additions and 3 deletions
|
@ -709,9 +709,7 @@ class LazyUnpickler(pickle.Unpickler):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def rebuild_from_type_v2(func, new_type, args, state):
|
def rebuild_from_type_v2(func, new_type, args, state):
|
||||||
# import torch; return torch._tensor._rebuild_from_type_v2(func, new_type, args, state)
|
return func(*args)
|
||||||
ret = func(*args)
|
|
||||||
return ret
|
|
||||||
|
|
||||||
CLASSES: Dict[Any, Any] = {
|
CLASSES: Dict[Any, Any] = {
|
||||||
('torch._tensor', '_rebuild_from_type_v2'): rebuild_from_type_v2,
|
('torch._tensor', '_rebuild_from_type_v2'): rebuild_from_type_v2,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue