pub struct ViTEncoderConfig {
pub block_cfg: ViTBlockConfig,
pub depth: usize,
}Expand description
Configuration for the ViT encoder stack.
Fields§
§block_cfg: ViTBlockConfigShared configuration for every transformer block.
depth: usizeNumber of transformer blocks (encoder depth).
Implementations§
Trait Implementations§
Source§impl Clone for ViTEncoderConfig
impl Clone for ViTEncoderConfig
Source§fn clone(&self) -> ViTEncoderConfig
fn clone(&self) -> ViTEncoderConfig
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 ViTEncoderConfig
impl Debug for ViTEncoderConfig
Source§impl PartialEq for ViTEncoderConfig
impl PartialEq for ViTEncoderConfig
Source§fn eq(&self, other: &ViTEncoderConfig) -> bool
fn eq(&self, other: &ViTEncoderConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ViTEncoderConfig
Auto Trait Implementations§
impl Freeze for ViTEncoderConfig
impl RefUnwindSafe for ViTEncoderConfig
impl Send for ViTEncoderConfig
impl Sync for ViTEncoderConfig
impl Unpin for ViTEncoderConfig
impl UnsafeUnpin for ViTEncoderConfig
impl UnwindSafe for ViTEncoderConfig
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