Struct finalfusion::embeddings::EmbeddingWithNorm
source · pub struct EmbeddingWithNorm<'a> {
pub embedding: CowArray<'a, f32, Ix1>,
pub norm: f32,
}
Expand description
An embedding with its (pre-normalization) l2 norm.
Fields§
§embedding: CowArray<'a, f32, Ix1>
§norm: f32
Implementations§
source§impl<'a> EmbeddingWithNorm<'a>
impl<'a> EmbeddingWithNorm<'a>
pub fn into_unnormalized(self) -> Array1<f32>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for EmbeddingWithNorm<'a>
impl<'a> Send for EmbeddingWithNorm<'a>
impl<'a> Sync for EmbeddingWithNorm<'a>
impl<'a> Unpin for EmbeddingWithNorm<'a>
impl<'a> UnwindSafe for EmbeddingWithNorm<'a>
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