ggml_rope_inplace: Rotary Position Embedding In-place (Graph)
Description
In-place version of ggml_rope. Returns a view of the input tensor.
Usage
ggml_rope_inplace(ctx, a, b, n_dims, mode = 0L)
Value
View of input tensor with RoPE applied
Arguments
- ctx
GGML context
- a
Input tensor (will be modified in-place)
- b
Position tensor (int32)
- n_dims
Number of dimensions to apply rotation to
- mode
RoPE mode