Skip to main content

split_heads

Function split_heads 

Source
pub fn split_heads(
    qkv: &Tensor,
    n_head: usize,
) -> Result<(Tensor, Tensor, Tensor)>
Expand description

qkv [t, 3c] -> (q, k, v) each [h, t, c/h].