We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9ed1e2 commit 9f4b89dCopy full SHA for 9f4b89d
pytensor/configparser.py
@@ -538,22 +538,6 @@ def __str__(self):
538
return f"{self.name} ({self.default})"
539
540
541
-class ContextsParam(ConfigParam):
542
- def __init__(self):
543
- super().__init__("", apply=self._apply, mutable=False)
544
-
545
- def _apply(self, val):
546
- if val == "":
547
- return val
548
- for v in val.split(";"):
549
- s = v.split("->")
550
- if len(s) != 2:
551
- raise ValueError(f"Malformed context map: {v}")
552
- if s[0] == "cpu" or s[0].startswith("cuda") or s[0].startswith("opencl"):
553
- raise ValueError(f"Cannot use {s[0]} as context name")
554
555
556
557
def parse_config_string(
558
config_string: str, issue_warnings: bool = True
559
) -> dict[str, str]:
0 commit comments