mlx-bun library API
Documentation
Preparing search index...
@mlx-bun/inference
@mlx-bun/inference/layers
applyRope2d
Function applyRope2d
applyRope2d
(
x
:
MlxArray
,
tables
:
Rope2dTables
)
:
MlxArray
x * cos + rotate_half(x) * sin. x: [B, L, H, headDim]; returns a new array.
Parameters
x
:
MlxArray
tables
:
Rope2dTables
Returns
MlxArray
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Documentation
mlx-bun library API
Loading...
x * cos + rotate_half(x) * sin. x: [B, L, H, headDim]; returns a new array.