pub struct GraphAttentionConfig {
pub base: AttentionConfig,
pub edge_dim: Option<usize>,
pub negative_slope: f32,
pub concat_heads: bool,
}Expand description
Configuration for graph attention networks.
Fields§
§base: AttentionConfigBase attention configuration
edge_dim: Option<usize>Edge feature dimension (if using edge features)
negative_slope: f32Negative slope for LeakyReLU
concat_heads: boolWhether to concatenate multi-head outputs (vs averaging)
Implementations§
Source§impl GraphAttentionConfig
impl GraphAttentionConfig
Sourcepub fn builder() -> GraphAttentionConfigBuilder
pub fn builder() -> GraphAttentionConfigBuilder
Creates a new builder for GraphAttentionConfig.
Sourcepub fn validate(&self) -> AttentionResult<()>
pub fn validate(&self) -> AttentionResult<()>
Validates the configuration.
Trait Implementations§
Source§impl Clone for GraphAttentionConfig
impl Clone for GraphAttentionConfig
Source§fn clone(&self) -> GraphAttentionConfig
fn clone(&self) -> GraphAttentionConfig
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 GraphAttentionConfig
impl Debug for GraphAttentionConfig
Source§impl<'de> Deserialize<'de> for GraphAttentionConfig
impl<'de> Deserialize<'de> for GraphAttentionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GraphAttentionConfig
impl RefUnwindSafe for GraphAttentionConfig
impl Send for GraphAttentionConfig
impl Sync for GraphAttentionConfig
impl Unpin for GraphAttentionConfig
impl UnwindSafe for GraphAttentionConfig
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