pub struct PredictorConfig {
pub num_heads: usize,
pub num_layers: usize,
pub target_sparsity: f32,
pub min_active_heads: usize,
pub quality_threshold: f32,
pub step_adaptive: bool,
}Expand description
Configuration for mask prediction
Fields§
§num_heads: usizeNumber of attention heads
num_layers: usizeNumber of layers
target_sparsity: f32Target sparsity (fraction of heads to skip)
min_active_heads: usizeMinimum heads to keep per layer
quality_threshold: f32Quality threshold for adaptive sparsity
step_adaptive: boolStep-dependent sparsity (more sparse early)
Trait Implementations§
Source§impl Clone for PredictorConfig
impl Clone for PredictorConfig
Source§fn clone(&self) -> PredictorConfig
fn clone(&self) -> PredictorConfig
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 PredictorConfig
impl Debug for PredictorConfig
Source§impl Default for PredictorConfig
impl Default for PredictorConfig
Source§impl<'de> Deserialize<'de> for PredictorConfig
impl<'de> Deserialize<'de> for PredictorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PredictorConfig
impl RefUnwindSafe for PredictorConfig
impl Send for PredictorConfig
impl Sync for PredictorConfig
impl Unpin for PredictorConfig
impl UnsafeUnpin for PredictorConfig
impl UnwindSafe for PredictorConfig
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