pub struct PointTransformerConfig {
pub in_dim: usize,
pub dim: usize,
pub out_dim: usize,
pub pos_hidden: usize,
pub attn_hidden: usize,
pub k: usize,
}Expand description
Configuration for a PointTransformerLayer.
Fields§
§in_dim: usizeInput feature dimension d_in.
dim: usizeAttention (query / key / value) dimension d.
out_dim: usizeOutput feature dimension d_out.
Hidden width of the position-encoding MLP θ.
Hidden width of the attention MLP γ.
k: usizeNumber of neighbours k (includes the point itself).
Implementations§
Source§impl PointTransformerConfig
impl PointTransformerConfig
Sourcepub fn new(
in_dim: usize,
dim: usize,
out_dim: usize,
pos_hidden: usize,
attn_hidden: usize,
k: usize,
) -> VisionResult<Self>
pub fn new( in_dim: usize, dim: usize, out_dim: usize, pos_hidden: usize, attn_hidden: usize, k: usize, ) -> VisionResult<Self>
Create and validate a configuration.
§Errors
VisionError::InvalidEmbedDimifin_dim,dimorout_dimis 0.VisionError::EmptyInputifk == 0,pos_hidden == 0orattn_hidden == 0.
Trait Implementations§
Source§impl Clone for PointTransformerConfig
impl Clone for PointTransformerConfig
Source§fn clone(&self) -> PointTransformerConfig
fn clone(&self) -> PointTransformerConfig
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 PointTransformerConfig
impl Debug for PointTransformerConfig
Source§impl PartialEq for PointTransformerConfig
impl PartialEq for PointTransformerConfig
Source§fn eq(&self, other: &PointTransformerConfig) -> bool
fn eq(&self, other: &PointTransformerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointTransformerConfig
Auto Trait Implementations§
impl Freeze for PointTransformerConfig
impl RefUnwindSafe for PointTransformerConfig
impl Send for PointTransformerConfig
impl Sync for PointTransformerConfig
impl Unpin for PointTransformerConfig
impl UnsafeUnpin for PointTransformerConfig
impl UnwindSafe for PointTransformerConfig
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