pub struct SpatialTransformerConfig {
pub depth: usize,
pub num_groups: usize,
pub context_dim: Option<usize>,
pub sliced_attention_size: Option<usize>,
pub use_linear_projection: bool,
}
Fields§
§depth: usize
§num_groups: usize
§context_dim: Option<usize>
§sliced_attention_size: Option<usize>
§use_linear_projection: bool
Trait Implementations§
source§impl Clone for SpatialTransformerConfig
impl Clone for SpatialTransformerConfig
source§fn clone(&self) -> SpatialTransformerConfig
fn clone(&self) -> SpatialTransformerConfig
Returns a copy 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 moresource§impl Debug for SpatialTransformerConfig
impl Debug for SpatialTransformerConfig
source§impl Default for SpatialTransformerConfig
impl Default for SpatialTransformerConfig
impl Copy for SpatialTransformerConfig
Auto Trait Implementations§
impl Freeze for SpatialTransformerConfig
impl RefUnwindSafe for SpatialTransformerConfig
impl Send for SpatialTransformerConfig
impl Sync for SpatialTransformerConfig
impl Unpin for SpatialTransformerConfig
impl UnwindSafe for SpatialTransformerConfig
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