[][src]Struct finalfusion::storage::MmapArray

pub struct MmapArray { /* fields omitted */ }

Memory-mapped matrix.

Trait Implementations

impl Storage for MmapArray[src]

impl StorageView for MmapArray[src]

impl From<MmapArray> for StorageWrap[src]

impl From<MmapArray> for StorageViewWrap[src]

Auto Trait Implementations

impl Send for MmapArray

impl Sync for MmapArray

Blanket Implementations

impl<S> Quantize for S where
    S: StorageView
[src]

fn quantize_using<T, R>(
    &Self,
    usize,
    u32,
    usize,
    usize,
    bool,
    &mut R
) -> QuantizedArray where
    R: Rng,
    T: TrainPQ<f32>, 
[src]

Quantize the embedding matrix.

This method trains a quantizer for the embedding matrix and then quantizes the matrix using this quantizer.

fn quantize<T>(
    &self,
    n_subquantizers: usize,
    n_subquantizer_bits: u32,
    n_iterations: usize,
    n_attempts: usize,
    normalize: bool
) -> QuantizedArray where
    T: TrainPQ<f32>, 
[src]

Quantize the embedding matrix. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]