pub struct HgnnLayerConfig {
pub in_dim: usize,
pub out_dim: usize,
pub use_attention: bool,
pub n_heads: usize,
pub dropout: f64,
}Expand description
Configuration for a single HGNN or HGAT convolution layer.
Fields§
§in_dim: usizeInput feature dimension.
out_dim: usizeOutput feature dimension.
use_attention: boolWhether to use attention-weighted aggregation (HGAT variant).
n_heads: usizeNumber of attention heads (only used when use_attention = true).
dropout: f64Dropout rate applied to output features during training (0.0 = no dropout).
Trait Implementations§
Source§impl Clone for HgnnLayerConfig
impl Clone for HgnnLayerConfig
Source§fn clone(&self) -> HgnnLayerConfig
fn clone(&self) -> HgnnLayerConfig
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 moreSource§impl Debug for HgnnLayerConfig
impl Debug for HgnnLayerConfig
Auto Trait Implementations§
impl Freeze for HgnnLayerConfig
impl RefUnwindSafe for HgnnLayerConfig
impl Send for HgnnLayerConfig
impl Sync for HgnnLayerConfig
impl Unpin for HgnnLayerConfig
impl UnsafeUnpin for HgnnLayerConfig
impl UnwindSafe for HgnnLayerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more