File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change 72
72
from torch .fx .graph import _PyTreeCodeGen , _PyTreeInfo
73
73
from torch .utils ._sympy .value_ranges import ValueRangeError , ValueRanges
74
74
75
- from .exported_program import (
76
- CallSpec ,
77
- )
78
75
from .passes .add_runtime_assertions_for_constraints_pass import (
79
76
_AddRuntimeAssertionsForInlineConstraintsPass ,
80
77
)
Original file line number Diff line number Diff line change 1
- import dataclasses
2
- from typing import Optional
3
1
import warnings
4
2
5
3
6
4
import torch
7
5
import torch .fx
8
- import torch .utils ._pytree as pytree
9
6
10
7
11
8
# TODO(ycao): This is added to avoid breaking existing code temporarily.
32
29
]
33
30
34
31
35
- # Information to maintain user calling/returning specs
36
- @dataclasses .dataclass
37
- class CallSpec :
38
- in_spec : Optional [pytree .TreeSpec ]
39
- out_spec : Optional [pytree .TreeSpec ]
40
-
41
-
42
32
def _create_graph_module_for_export (root , graph ):
43
33
try :
44
34
gm = torch .fx .GraphModule (root , graph )
You can’t perform that action at this time.
0 commit comments