pub trait FlashAttentionOpts: Debug {
    // Required method
    fn softmax_scale(&self) -> f32;

    // Provided methods
    fn window_size_left(&self) -> Option<usize> { ... }
    fn window_size_right(&self) -> Option<usize> { ... }
    fn alibi_slopes(&self) -> Option<&Tensor> { ... }
}

Required Methods§

Provided Methods§

Implementations on Foreign Types§

source§

impl FlashAttentionOpts for (f32, usize, usize)

source§

impl FlashAttentionOpts for f32

source§

impl<'a> FlashAttentionOpts for (f32, &'a Tensor)

source§

impl<'a> FlashAttentionOpts for (f32, usize, &'a Tensor)

source§

impl<'a> FlashAttentionOpts for (f32, usize, usize, &'a Tensor)

Implementors§