MCPcopy Create free account
hub / github.com/pytorch/executorch / __init__

Method __init__

backends/mlx/patterns.py:144–157  ·  view source on GitHub ↗
(
        self,
        head: Node,
        body: List[Node],
        cache: Node,
        update: Node,
        start_pos: Any,
        ring_size: int = 0,
    )

Source from the content-addressed store, hash-verified

142 """
143
144 def __init__(
145 self,
146 head: Node,
147 body: List[Node],
148 cache: Node,
149 update: Node,
150 start_pos: Any,
151 ring_size: int = 0,
152 ):
153 super().__init__(head, body)
154 self.cache = cache
155 self.update = update
156 self.start_pos = start_pos
157 self.ring_size = ring_size
158
159 @staticmethod
160 def _is_auto_func_et_kv_cache_update(node: Node) -> bool:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected