registry
registry
¤
LayerOptPattern = type[LayerOptPatternDefn]
module-attribute
¤
ParameterOptMatch = GraphOptMatch[TorchParameterNode]
module-attribute
¤
ParameterOptPattern = type[ParameterOptPatternDefn]
module-attribute
¤
ParameterOptPatternDefn = GraphOptPatternDefn[TorchParameterNode]
module-attribute
¤
LayerOptApplyFunc
¤
Bases: Protocol
Source code in cirkit/backend/torch/optimization/registry.py
65 66 67 | |
__call__(compiler, match)
¤
Source code in cirkit/backend/torch/optimization/registry.py
66 67 | |
LayerOptMatch
¤
Bases: GraphOptMatch[TorchLayer]
Source code in cirkit/backend/torch/optimization/registry.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
_pentries = pentries
instance-attribute
¤
pentries
property
¤
size
cached
property
¤
__init__(pattern, entries, pentries)
¤
Source code in cirkit/backend/torch/optimization/registry.py
43 44 45 46 47 48 49 50 | |
LayerOptPatternDefn
¤
Bases: GraphOptPatternDefn[TorchLayer]
Source code in cirkit/backend/torch/optimization/registry.py
25 26 27 28 29 30 31 32 33 34 35 36 | |
cpatterns()
classmethod
¤
Source code in cirkit/backend/torch/optimization/registry.py
34 35 36 | |
entries()
classmethod
¤
Source code in cirkit/backend/torch/optimization/registry.py
26 27 28 | |
ppatterns()
classmethod
¤
Source code in cirkit/backend/torch/optimization/registry.py
30 31 32 | |
LayerOptRegistry
¤
Bases: CompilerRegistry[LayerOptPattern, LayerOptApplyFunc]
Source code in cirkit/backend/torch/optimization/registry.py
79 80 81 82 83 84 85 | |
_validate_rule_function(func)
classmethod
¤
Source code in cirkit/backend/torch/optimization/registry.py
80 81 82 83 84 85 | |
ParameterOptApplyFunc
¤
Bases: Protocol
Source code in cirkit/backend/torch/optimization/registry.py
18 19 20 21 22 | |
__call__(compiler, match)
¤
Source code in cirkit/backend/torch/optimization/registry.py
19 20 21 22 | |
ParameterOptRegistry
¤
Bases: CompilerRegistry[ParameterOptPattern, ParameterOptApplyFunc]
Source code in cirkit/backend/torch/optimization/registry.py
70 71 72 73 74 75 76 | |
_validate_rule_function(func)
classmethod
¤
Source code in cirkit/backend/torch/optimization/registry.py
71 72 73 74 75 76 | |