mlx.core.fast.rope#
- rope(a: array, dims: int, *, traditional: bool, base: float | None, scale: float, offset: int | array, freqs: array | None = None, stream: None | Stream |Device = None) array #
对输入应用旋转位置编码。
- 参数:
- 返回值:
输出数组。
- 返回类型:
对输入应用旋转位置编码。
输出数组。