mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 09:21:18 +08:00
Fix incorrect type annotation (#720)
A `Tuple` is missing in this type annotation.
This commit is contained in:
parent
abcd891851
commit
8a265f0d54
@ -105,7 +105,7 @@ class MultiHeadAttention(nn.Module):
|
||||
values: mx.array,
|
||||
mask: Optional[mx.array],
|
||||
cache: Optional[Tuple[mx.array, mx.array]] = None,
|
||||
) -> [mx.array, Tuple[mx.array, mx.array]]:
|
||||
) -> Tuple[mx.array, Tuple[mx.array, mx.array]]:
|
||||
queries = self.query_proj(queries)
|
||||
keys = self.key_proj(keys)
|
||||
values = self.value_proj(values)
|
||||
|
Loading…
Reference in New Issue
Block a user