latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
CustomDecompTable
- class tensorplay.export.CustomDecompTable(entries: Mapping[Any, Callable[[...], Any]] | Iterable[tuple[Any, Callable[[...], Any]]] | None = None, *, defaults: bool = True)[source]
A validated mutable mapping from graph targets to replacement callables.
Entries are keyed by graph target (callable or method name). Removing a key preserves the op from rewriting;
materializereturns a plain dict for consumers that require one.- clear() None. Remove all items from D.
- classmethod fromkeys(iterable, value=None, /)
Create a new dictionary with keys from iterable and values set to value.
- materialize() dict[Any, Callable[[...], Any]][source]
Return a plain dict of effective entries, resolving defaults.
- popitem()
Remove and return a (key, value) pair as a 2-tuple.
Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty.
- remove(target: Any) Callable[[...], Any][source]
Preserve
targetby deleting its decomposition entry.
- setdefault(key, default=None, /)
Insert key with a value of default if key is not in the dictionary.
Return the value for key if key is in the dictionary, else default.
Help improve this page
Found an error, an unclear step, or a missing example?

