pub struct LinearConfig {
pub transpose_weight: bool,
}Expand description
Configuration for Linear operations
Fields§
§transpose_weight: boolWhether weight needs transposition for Burn’s expected layout.
- true: Weight is in ONNX Gemm layout [out_features, in_features] (from Gemm with transB=1)
- false: Weight is already in [in_features, out_features] format (from MatMul)
Implementations§
Trait Implementations§
Source§impl Clone for LinearConfig
impl Clone for LinearConfig
Auto Trait Implementations§
impl Freeze for LinearConfig
impl RefUnwindSafe for LinearConfig
impl Send for LinearConfig
impl Sync for LinearConfig
impl Unpin for LinearConfig
impl UnsafeUnpin for LinearConfig
impl UnwindSafe for LinearConfig
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