File tree Expand file tree Collapse file tree 2 files changed +6
-19
lines changed
onnxscript/function_libs/torch_lib Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,3 @@ def _load_boolean_flag(
5151 this_will = "trace all traceable functions to fold if branches and collapse constant expressions" ,
5252 default = True ,
5353)
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 4040 "TorchScriptTracingEvaluator" ,
4141]
4242
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_ir import (
45+ TorchScriptGraph ,
46+ TorchScriptTensor ,
47+ TorchScriptTracingEvaluator ,
48+ )
You can’t perform that action at this time.
0 commit comments