Skip to content

Commit 1eb5188

Browse files
committed
[jit] Remove more reference to TorchScript
Summary: Remove some occurrences in comments. Test Plan: None Reviewers: Subscribers: Tasks: Tags:
1 parent d338eea commit 1eb5188

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

exir/dialects/_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __getattr__(self, op_name):
100100
parent_packet = getattr(self._op_namespace, op_name)
101101
except AttributeError as e:
102102
# Turn this into AttributeError so getattr(obj, key, default)
103-
# works (this is called by TorchScript with __origin__)
103+
# works
104104
raise AttributeError(
105105
f"'_OpNamespace' '{self._dialect}.{self._name}' object has no attribute '{op_name}'"
106106
) from e

exir/serde/upgrade.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_upgraders() -> Dict[str, Tuple[str, str]]:
5353

5454
class GraphModuleOpUpgrader:
5555
"""This upgrader is able to upgrade the old version of ops in a given GraphModule, if all upgraders are available.
56-
To use it, retrieve upgraders from somewhere (TorchScript API or new API) and pass it into this upgrader. In
56+
To use it, retrieve an upgrader and pass it into this upgrader. In
5757
__init__() it does the following:
5858
1. parse the upgrader list and reorder for upgrading purpose.
5959
2. register old versions of operators as custom ops.
@@ -75,7 +75,7 @@ def div__Scalar_0_3(self: torch.Tensor, other) -> torch.Tensor: # upgrader i
7575
},
7676
7777
Note that we require the upgrader function to be runnable in Python (which is a stricter requirement than the
78-
original TorchScript upgrader).
78+
original, now deprecated TorchScript upgrader).
7979
"""
8080

8181
class UpgraderPass(_ExportPassBaseDeprecatedDoNotUse):

0 commit comments

Comments
 (0)