File tree Expand file tree Collapse file tree 3 files changed +6
-742
lines changed
onnxscript/function_libs/torch_lib Expand file tree Collapse file tree 3 files changed +6
-742
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,3 @@ def _load_boolean_flag(
51
51
this_will = "trace all traceable functions to fold if branches and collapse constant expressions" ,
52
52
default = True ,
53
53
)
54
- EXPERIMENTAL_USE_IR : bool = _load_boolean_flag (
55
- "TORCHLIB_EXPERIMENTAL_USE_IR" ,
56
- this_will = "use the ONNX IR instead of the PyTorch Graph for graph building" ,
57
- deprecated = True ,
58
- )
Original file line number Diff line number Diff line change 40
40
"TorchScriptTracingEvaluator" ,
41
41
]
42
42
43
- from onnxscript .function_libs .torch_lib import _flags
44
-
45
- if _flags .EXPERIMENTAL_USE_IR :
46
- from ._graph_building_ir import (
47
- TorchScriptGraph ,
48
- TorchScriptTensor ,
49
- TorchScriptTracingEvaluator ,
50
- )
51
- else :
52
- from ._graph_building_torch import ( # type: ignore[assignment]
53
- TorchScriptGraph ,
54
- TorchScriptTensor ,
55
- TorchScriptTracingEvaluator ,
56
- )
43
+
44
+ from ._graph_building_torch import (
45
+ TorchScriptGraph ,
46
+ TorchScriptTensor ,
47
+ TorchScriptTracingEvaluator ,
48
+ )
You can’t perform that action at this time.
0 commit comments