Skip to main content

GaWeight

Trait GaWeight 

Source
pub trait GaWeight: Sync {
    // Required method
    fn fill(&self, dst: &mut [f32]);
}
Expand description

A weight of the GigaAM encoder as floats, for a device that keeps its own copy: asked once a weight, when the device cache misses.

Required Methods§

Source

fn fill(&self, dst: &mut [f32])

Fill dst ([rows·cols], row-major) with the weight.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§