Skip to main content

EmbeddingExtractor

Trait EmbeddingExtractor 

Source
pub trait EmbeddingExtractor {
    // Required methods
    fn extract(
        &self,
        image_data: &[u8],
        width: u32,
        height: u32,
    ) -> CnnResult<Vec<f32>>;
    fn embedding_dim(&self) -> usize;
}
Expand description

Embedding extractor trait

Required Methods§

Source

fn extract( &self, image_data: &[u8], width: u32, height: u32, ) -> CnnResult<Vec<f32>>

Source

fn embedding_dim(&self) -> usize

Implementors§