pub struct TensorLayer {
pub input_indices: Vec<u32>,
pub output_size: usize,
pub bias: Vec<f32>,
pub row_offsets: Vec<u32>,
pub columns: Vec<u32>,
pub weights: Vec<f32>,
pub gate_rows: Vec<u32>,
pub boolean_rows: Vec<u32>,
pub index_reads: Vec<IndexReadRow>,
}Fields§
§input_indices: Vec<u32>Packed positions this layer reads, in column order.
output_size: usize§bias: Vec<f32>One bias per projection row, already rounded to f32.
row_offsets: Vec<u32>CSR sparse matrix over the projection rows.
columns: Vec<u32>§weights: Vec<f32>§gate_rows: Vec<u32>Output rows whose value is multiplied by relu of gate row output_size + k.
boolean_rows: Vec<u32>§index_reads: Vec<IndexReadRow>Trait Implementations§
Source§impl Clone for TensorLayer
impl Clone for TensorLayer
Auto Trait Implementations§
impl Freeze for TensorLayer
impl RefUnwindSafe for TensorLayer
impl Send for TensorLayer
impl Sync for TensorLayer
impl Unpin for TensorLayer
impl UnsafeUnpin for TensorLayer
impl UnwindSafe for TensorLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more