Skip to content

Commit 1d83826

Browse files
committed
Update base for Update on "Create env to test with TORCHLIB_EXPERIMENTAL_PREFER_TRACING on | test(torchlib)"
### Changes - Create env to test with TORCHLIB_EXPERIMENTAL_PREFER_TRACING on - Test with Python 3.11 as well [ghstack-poisoned]
1 parent e47392f commit 1d83826

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

onnxscript/function_libs/torch_lib/_flags.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,3 @@ def _load_boolean_flag(
3939
"TORCHLIB_EXPERIMENTAL_INITIALIZERS_AS_INPUTS",
4040
this_will="make initializers as inputs to the model graph",
4141
)
42-
EXPERIMENTAL_PREFER_TRACING: bool = _load_boolean_flag(
43-
"TORCHLIB_EXPERIMENTAL_PREFER_TRACING",
44-
this_will="trace all traceable functions to fold if branches and collapse constant expressions",
45-
)

onnxscript/function_libs/torch_lib/registration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ def torch_op(
9999
trace_only: bool = False,
100100
private: bool = False,
101101
complex: bool = False,
102-
traceable: bool = False,
103102
) -> Callable[[FunctionType], onnxscript.OnnxFunction | onnxscript.values.TracedOnnxFunction]:
104103
"""Register a torch op.
105104
@@ -113,7 +112,6 @@ def torch_op(
113112
private: Whether the function is private (not directly exposed). It should
114113
be true for all functions with names starting with "_".
115114
complex: Whether the function expects complex-valued inputs.
116-
traceable: Whether the function can be traced.
117115
"""
118116
if registry is None:
119117
registry = default_registry
@@ -130,7 +128,6 @@ def wrapper(
130128
else:
131129
assert isinstance(func, FunctionType)
132130
processed_func = onnxscript.script(opset=custom_opset)(func)
133-
processed_func.experimental_traceable = traceable
134131

135132
assert registry is not None
136133
for name_ in _check_and_normalize_names(name):

onnxscript/values.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,6 @@ def __init__(
479479
self._param_schemas: Optional[tuple[ParamSchema, ...]] = None
480480
self._op_schema: Optional[onnx.defs.OpSchema] = None
481481

482-
# Experimental fields
483-
self.experimental_traceable = False
484-
485482
@property
486483
@deprecation.deprecated(
487484
since="0.1",

0 commit comments

Comments
 (0)