Skip to main content

forward_decoder

Function forward_decoder 

Source
pub fn forward_decoder(
    weights: &Sam3DecoderWeights,
    memory: &[f32],
    memory_pos: &[f32],
    memory_text: &[f32],
    text_attention_mask: &[u8],
    batch: usize,
    h: usize,
    w: usize,
    seq_len: usize,
    gguf_packed: Option<&GgufPackedParams>,
) -> Result<Sam3DecoderOutput, Error>
Expand description

Run the full decoder (batch must be 1 for the boxRPB path).