Struct candle_transformers::models::segment_anything::MlpBlock
source · pub struct MlpBlock { /* private fields */ }
Implementations§
source§impl MlpBlock
impl MlpBlock
pub fn new( embedding_dim: usize, mlp_dim: usize, activation: Activation, vb: VarBuilder<'_> ) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MlpBlock
impl !RefUnwindSafe for MlpBlock
impl Send for MlpBlock
impl Sync for MlpBlock
impl Unpin for MlpBlock
impl !UnwindSafe for MlpBlock
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