[−][src]Struct finalfusion::norms::NdNorms
Chunk for storing embedding l2 norms.
Word embeddings are always l2-normalized in finalfusion. Sometimes it is useful to get the original unnormalized embeddings. The norms chunk is used for storing norms of in-vocabulary embeddings. The unnormalized embedding can be reconstructed by multiplying the normalized embedding by its orginal l2 norm.
Methods
impl NdNorms
[src]
Trait Implementations
impl Clone for NdNorms
[src]
impl Debug for NdNorms
[src]
impl Deref for NdNorms
[src]
type Target = Array1<f32>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<V> From<V> for NdNorms where
V: Into<Array1<f32>>,
[src]
V: Into<Array1<f32>>,
Auto Trait Implementations
impl RefUnwindSafe for NdNorms
impl Send for NdNorms
impl Sync for NdNorms
impl Unpin for NdNorms
impl UnwindSafe for NdNorms
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,