pub trait PatchEmbedMeta {
// Required methods
fn input_resolution(&self) -> [usize; 2];
fn d_input(&self) -> usize;
fn patch_size(&self) -> usize;
fn d_output(&self) -> usize;
fn enable_patch_norm(&self) -> bool;
// Provided methods
fn input_height(&self) -> usize { ... }
fn input_width(&self) -> usize { ... }
fn patches_resolution(&self) -> [usize; 2] { ... }
fn patches_height(&self) -> usize { ... }
fn patches_width(&self) -> usize { ... }
fn num_patches(&self) -> usize { ... }
}Expand description
Common introspection interface for PatchEmbed modules.
Required Methods§
Sourcefn input_resolution(&self) -> [usize; 2]
fn input_resolution(&self) -> [usize; 2]
Input resolution (height, width).
Sourcefn patch_size(&self) -> usize
fn patch_size(&self) -> usize
The size of each patch.
Sourcefn enable_patch_norm(&self) -> bool
fn enable_patch_norm(&self) -> bool
Enable patch normalization.
Provided Methods§
Sourcefn input_height(&self) -> usize
fn input_height(&self) -> usize
Input height.
Sourcefn input_width(&self) -> usize
fn input_width(&self) -> usize
Input width.
Sourcefn patches_resolution(&self) -> [usize; 2]
fn patches_resolution(&self) -> [usize; 2]
Image resolution, measured in patches.
Sourcefn patches_height(&self) -> usize
fn patches_height(&self) -> usize
Height of the image, measured in patches.
Sourcefn patches_width(&self) -> usize
fn patches_width(&self) -> usize
Width of the image, measured in patches.
Sourcefn num_patches(&self) -> usize
fn num_patches(&self) -> usize
Total number of patches.