Skip to content

Commit

Permalink
Improve static typing in tracer. (pytorch#3973)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#3973

X-link: pytorch/pytorch#128552

as title.

Reviewed By: angelayi

Differential Revision: D58485487

fbshipit-source-id: b2ae3f09e9465fb7f05a49d5a82f491dce5c6fe0
  • Loading branch information
zhxchen17 authored and facebook-github-bot committed Jun 14, 2024
1 parent da9b92d commit 4b6331d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exir/lowered_backend_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from executorch.exir.schema import Program

from executorch.exir.tracer import Value
from torch._library.fake_class_registry import FakeScriptObject

from torch._subclasses import FakeTensor
from torch.export.exported_program import (
Expand Down Expand Up @@ -430,7 +431,7 @@ def _get_new_signature( # noqa: C901
) -> Tuple[
ExportGraphSignature,
Dict[str, Union[torch.Tensor, torch.nn.Parameter]],
Dict[str, Union[torch.Tensor, torch.ScriptObject]],
Dict[str, Union[torch.Tensor, FakeScriptObject, torch.ScriptObject]],
]:
"""
Args:
Expand Down

0 comments on commit 4b6331d

Please sign in to comment.