mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-13 11:41:14 +08:00
Doc error for default for scale in SinusoidalPositionalEncoding (#1174)
This commit is contained in:
parent
079882495d
commit
3576b547c5
@ -67,7 +67,7 @@ class SinusoidalPositionalEncoding(Module):
|
|||||||
max_freq (float, optional): The maximum frequency expected. Default:
|
max_freq (float, optional): The maximum frequency expected. Default:
|
||||||
``1``.
|
``1``.
|
||||||
scale (float, optional): A multiplicative scale for the embeddings.
|
scale (float, optional): A multiplicative scale for the embeddings.
|
||||||
Default: ``sqrt(dims//2)``.
|
Default: ``sqrt(2/dims)``.
|
||||||
cos_first (bool, optional): If ``True`` embed using ``[cos(x); sin(x)]``
|
cos_first (bool, optional): If ``True`` embed using ``[cos(x); sin(x)]``
|
||||||
instead of the reverse. Default: ``False``.
|
instead of the reverse. Default: ``False``.
|
||||||
full_turns (bool, optional): If ``True`` multiply the frequencies with
|
full_turns (bool, optional): If ``True`` multiply the frequencies with
|
||||||
|
Loading…
Reference in New Issue
Block a user