File tree Expand file tree Collapse file tree 3 files changed +0
-10
lines changed Expand file tree Collapse file tree 3 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,3 @@ def _load_boolean_flag(
39
39
"TORCHLIB_EXPERIMENTAL_INITIALIZERS_AS_INPUTS" ,
40
40
this_will = "make initializers as inputs to the model graph" ,
41
41
)
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
- )
Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ def torch_op(
99
99
trace_only : bool = False ,
100
100
private : bool = False ,
101
101
complex : bool = False ,
102
- traceable : bool = False ,
103
102
) -> Callable [[FunctionType ], onnxscript .OnnxFunction | onnxscript .values .TracedOnnxFunction ]:
104
103
"""Register a torch op.
105
104
@@ -113,7 +112,6 @@ def torch_op(
113
112
private: Whether the function is private (not directly exposed). It should
114
113
be true for all functions with names starting with "_".
115
114
complex: Whether the function expects complex-valued inputs.
116
- traceable: Whether the function can be traced.
117
115
"""
118
116
if registry is None :
119
117
registry = default_registry
@@ -130,7 +128,6 @@ def wrapper(
130
128
else :
131
129
assert isinstance (func , FunctionType )
132
130
processed_func = onnxscript .script (opset = custom_opset )(func )
133
- processed_func .experimental_traceable = traceable
134
131
135
132
assert registry is not None
136
133
for name_ in _check_and_normalize_names (name ):
Original file line number Diff line number Diff line change @@ -479,9 +479,6 @@ def __init__(
479
479
self ._param_schemas : Optional [tuple [ParamSchema , ...]] = None
480
480
self ._op_schema : Optional [onnx .defs .OpSchema ] = None
481
481
482
- # Experimental fields
483
- self .experimental_traceable = False
484
-
485
482
@property
486
483
@deprecation .deprecated (
487
484
since = "0.1" ,
You can’t perform that action at this time.
0 commit comments