Skip to content

Commit a1187c6

Browse files
zhxchen17facebook-github-bot
authored andcommitted
Fix lint error. (#990)
Summary: Pull Request resolved: #990 as title. Reviewed By: huydhn, tugsbayasgalan Differential Revision: D50380118 fbshipit-source-id: b5a4dc53d7bec1e3324853ab277e34d11a12be78
1 parent c4da034 commit a1187c6

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

exir/lowered_backend_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
from executorch.exir.tracer import Value
2727

28-
from torch._export.exported_program import CallSpec, ExportedProgram
28+
from torch._export.exported_program import ExportedProgram
2929
from torch._subclasses import FakeTensor
3030
from torch.export.exported_program import (
3131
ExportGraphSignature,

exir/serde/serialize.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import json
1414
import logging
1515
import operator
16-
from typing import Any, Callable, Dict, get_origin, List, Optional, Tuple, Union
16+
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
1717

1818
import executorch.exir as exir
1919
import executorch.exir.memory as memory
@@ -665,17 +665,10 @@ def deserialize(
665665
symbol_name_to_range,
666666
)
667667

668-
returns = inspect.signature(GraphModuleDeserializer.deserialize)
669-
if get_origin(returns.return_annotation) == tuple:
670-
# TODO remove this branch later.
671-
# pyre-ignore
672-
graph_module, sig, call_spec, module_call_graph, symbol_name_to_symbol = res
673-
else:
674-
graph_module = res.graph_module
675-
sig = res.signature
676-
module_call_graph = res.module_call_graph
677-
symbol_name_to_symbol = res.names_to_symbols
678-
call_spec = None
668+
graph_module = res.graph_module
669+
sig = res.signature
670+
module_call_graph = res.module_call_graph
671+
symbol_name_to_symbol = res.names_to_symbols
679672

680673
range_constraints = self.deserialize_range_constraints(
681674
symbol_name_to_range,

0 commit comments

Comments
 (0)