pub struct PatchEmbeddingConfig {
pub image_size: usize,
pub patch_size: usize,
pub in_channels: usize,
pub d_model: usize,
}Expand description
Configuration for patch embedding layer
Fields§
§image_size: usizeImage size (assumes square images)
patch_size: usizePatch size (assumes square patches)
in_channels: usizeNumber of input channels (e.g., 3 for RGB)
d_model: usizeEmbedding dimension
Implementations§
Trait Implementations§
Source§impl Clone for PatchEmbeddingConfig
impl Clone for PatchEmbeddingConfig
Source§fn clone(&self) -> PatchEmbeddingConfig
fn clone(&self) -> PatchEmbeddingConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 PatchEmbeddingConfig
impl RefUnwindSafe for PatchEmbeddingConfig
impl Send for PatchEmbeddingConfig
impl Sync for PatchEmbeddingConfig
impl Unpin for PatchEmbeddingConfig
impl UnwindSafe for PatchEmbeddingConfig
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