pub struct GnnSparseConfig {
pub num_nodes: usize,
pub feature_dim: usize,
pub num_edges: usize,
pub op: MessagePassingOp,
pub normalize: bool,
}Expand description
Configuration for GNN sparse operations.
Fields§
§num_nodes: usizeNumber of nodes in the graph.
feature_dim: usizeDimensionality of per-node features.
num_edges: usizeNumber of edges in the graph.
op: MessagePassingOpAggregation operation for message passing.
normalize: boolWhether to normalize aggregated messages by node degree.
Trait Implementations§
Source§impl Clone for GnnSparseConfig
impl Clone for GnnSparseConfig
Source§fn clone(&self) -> GnnSparseConfig
fn clone(&self) -> GnnSparseConfig
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 moreAuto Trait Implementations§
impl Freeze for GnnSparseConfig
impl RefUnwindSafe for GnnSparseConfig
impl Send for GnnSparseConfig
impl Sync for GnnSparseConfig
impl Unpin for GnnSparseConfig
impl UnsafeUnpin for GnnSparseConfig
impl UnwindSafe for GnnSparseConfig
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