pub struct DenseParams {
pub n_inputs: usize,
pub n_neurons: usize,
pub data_width: u32,
pub stream_length: usize,
pub input_seed_base: u16,
pub weight_seed_base: u16,
pub y_min: i64,
pub y_max: i64,
}Expand description
Parameters for a dense SC layer.
Maps to sc_dense_layer_core Verilog module.
Fields§
§n_inputs: usize§n_neurons: usize§data_width: u32§stream_length: usizeBitstream length for SC encoding.
input_seed_base: u16Base LFSR seed for input encoders (per-input stride applied automatically).
weight_seed_base: u16Base LFSR seed for weight encoders.
y_min: i64Input-to-current mapping: y_min in Q-format.
y_max: i64Input-to-current mapping: y_max in Q-format.
Trait Implementations§
Source§impl Clone for DenseParams
impl Clone for DenseParams
Source§fn clone(&self) -> DenseParams
fn clone(&self) -> DenseParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DenseParams
impl Debug for DenseParams
Source§impl Default for DenseParams
impl Default for DenseParams
Source§impl PartialEq for DenseParams
impl PartialEq for DenseParams
impl StructuralPartialEq for DenseParams
Auto Trait Implementations§
impl Freeze for DenseParams
impl RefUnwindSafe for DenseParams
impl Send for DenseParams
impl Sync for DenseParams
impl Unpin for DenseParams
impl UnsafeUnpin for DenseParams
impl UnwindSafe for DenseParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more