pub struct SparseUpdateConfig {
pub sparsity_threshold: f32,
pub coordinate_wise_sparsity: bool,
pub track_sparse_patterns: bool,
pub min_sparsity_ratio: f32,
pub use_compression: bool,
pub block_size: usize,
pub adaptive_threshold: bool,
}Expand description
Configuration for sparse parameter updates
Fields§
§sparsity_threshold: f32Sparsity threshold - gradients below this magnitude are considered zero
coordinate_wise_sparsity: boolWhether to use coordinate-wise sparsity detection
track_sparse_patterns: boolWhether to track sparse patterns over time
min_sparsity_ratio: f32Minimum sparsity ratio to trigger sparse updates (0.0 to 1.0)
use_compression: boolWhether to use compressed sparse representations
block_size: usizeBlock size for block-sparse updates
adaptive_threshold: boolWhether to use adaptive sparsity thresholds
Trait Implementations§
Source§impl Clone for SparseUpdateConfig
impl Clone for SparseUpdateConfig
Source§fn clone(&self) -> SparseUpdateConfig
fn clone(&self) -> SparseUpdateConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SparseUpdateConfig
impl Debug for SparseUpdateConfig
Auto Trait Implementations§
impl Freeze for SparseUpdateConfig
impl RefUnwindSafe for SparseUpdateConfig
impl Send for SparseUpdateConfig
impl Sync for SparseUpdateConfig
impl Unpin for SparseUpdateConfig
impl UnsafeUnpin for SparseUpdateConfig
impl UnwindSafe for SparseUpdateConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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