Skip to content

Commit 8ac9871

Browse files
committed
bring back deprecated configvals
1 parent 72a27db commit 8ac9871

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

pytensor/configdefaults.py

+22
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,27 @@ def add_vm_configvars():
11951195
)
11961196

11971197

1198+
def add_deprecated_configvars():
1199+
1200+
# TODO: remove this? Agree
1201+
config.add(
1202+
"unittests__rseed",
1203+
"Seed to use for randomized unit tests. "
1204+
"Special value 'random' means using a seed of None.",
1205+
StrParam(666, validate=_good_seem_param),
1206+
in_c_key=False,
1207+
)
1208+
1209+
config.add(
1210+
"warn__round",
1211+
"Warn when using `tensor.round` with the default mode. "
1212+
"Round changed its default from `half_away_from_zero` to "
1213+
"`half_to_even` to have the same default as NumPy.",
1214+
BoolParam(_warn_default("0.9")),
1215+
in_c_key=False,
1216+
)
1217+
1218+
11981219
def add_scan_configvars():
11991220
config.add(
12001221
"scan__allow_gc",
@@ -1441,6 +1462,7 @@ def add_caching_dir_configvars():
14411462
# Blas-related config are a special pain-point, because their addition depends on a lot of stuff from
14421463
# that module, which introduces a circular dependency!
14431464
add_metaopt_configvars()
1465+
add_deprecated_configvars()
14441466
add_vm_configvars()
14451467
add_numba_configvars()
14461468

0 commit comments

Comments
 (0)