Method
__init__
(
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
Tested by
no test coverage detected