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

Method __init__

backends/mlx/patterns.py:680–699  ·  view source on GitHub ↗
(
        self,
        head: Node,
        body: List[Node],
        query: Node,
        key: Node,
        value: Node,
        start_pos: Any,  # int or Node (SymInt)
        attn_mask: Optional[Node],
        scale: Optional[float],
        is_causal: bool,
    )

Source from the content-addressed store, hash-verified

678 """
679
680 def __init__(
681 self,
682 head: Node,
683 body: List[Node],
684 query: Node,
685 key: Node,
686 value: Node,
687 start_pos: Any, # int or Node (SymInt)
688 attn_mask: Optional[Node],
689 scale: Optional[float],
690 is_causal: bool,
691 ):
692 super().__init__(head, body)
693 self.query = query
694 self.key = key
695 self.value = value
696 self.start_pos = start_pos
697 self.attn_mask = attn_mask
698 self.scale = scale
699 self.is_causal = is_causal
700
701 @classmethod
702 def maybe_create(

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected