pub struct Qwen3DecodeLayerSpec {
pub num_heads: usize,
pub num_kv_heads: usize,
pub head_dim: usize,
pub kv_group_size: usize,
pub eps: f32,
pub use_custom_mask: bool,
pub hidden_shape: Shape,
pub batch: usize,
pub qk_norm: bool,
pub attention_bias: bool,
}Fields§
§num_heads: usize§num_kv_heads: usize§head_dim: usize§kv_group_size: usize§eps: f32§use_custom_mask: bool§batch: usize§qk_norm: bool§attention_bias: boolTrait Implementations§
Source§impl Clone for Qwen3DecodeLayerSpec
impl Clone for Qwen3DecodeLayerSpec
Source§fn clone(&self) -> Qwen3DecodeLayerSpec
fn clone(&self) -> Qwen3DecodeLayerSpec
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 moreAuto Trait Implementations§
impl Freeze for Qwen3DecodeLayerSpec
impl RefUnwindSafe for Qwen3DecodeLayerSpec
impl Send for Qwen3DecodeLayerSpec
impl Sync for Qwen3DecodeLayerSpec
impl Unpin for Qwen3DecodeLayerSpec
impl UnsafeUnpin for Qwen3DecodeLayerSpec
impl UnwindSafe for Qwen3DecodeLayerSpec
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