pub struct RuvectorLayer { /* private fields */ }Expand description
Main GNN layer operating on HNSW topology
Implementations§
Source§impl RuvectorLayer
impl RuvectorLayer
Sourcepub fn new(
input_dim: usize,
hidden_dim: usize,
heads: usize,
dropout: f32,
) -> Self
pub fn new( input_dim: usize, hidden_dim: usize, heads: usize, dropout: f32, ) -> Self
Create a new Ruvector GNN layer
§Arguments
input_dim- Dimension of input node embeddingshidden_dim- Dimension of hidden representationsheads- Number of attention headsdropout- Dropout rate (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for RuvectorLayer
impl Clone for RuvectorLayer
Source§fn clone(&self) -> RuvectorLayer
fn clone(&self) -> RuvectorLayer
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 RuvectorLayer
impl Debug for RuvectorLayer
Source§impl<'de> Deserialize<'de> for RuvectorLayer
impl<'de> Deserialize<'de> for RuvectorLayer
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 RuvectorLayer
impl RefUnwindSafe for RuvectorLayer
impl Send for RuvectorLayer
impl Sync for RuvectorLayer
impl Unpin for RuvectorLayer
impl UnwindSafe for RuvectorLayer
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