pub fn extract_memory_encoder_weights(
weights: &mut WeightMap,
cfg: &Sam2MemoryEncoderConfig,
) -> Result<Sam2MemoryEncoderWeights, Error>pub fn extract_memory_encoder_weights(
weights: &mut WeightMap,
cfg: &Sam2MemoryEncoderConfig,
) -> Result<Sam2MemoryEncoderWeights, Error>