pub struct ViTBlock {
pub config: ViTBlockConfig,
pub weights: ViTBlockWeights,
}Expand description
A single pre-norm ViT transformer block.
Fields§
§config: ViTBlockConfig§weights: ViTBlockWeightsImplementations§
Auto Trait Implementations§
impl Freeze for ViTBlock
impl RefUnwindSafe for ViTBlock
impl Send for ViTBlock
impl Sync for ViTBlock
impl Unpin for ViTBlock
impl UnsafeUnpin for ViTBlock
impl UnwindSafe for ViTBlock
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