pub enum F32SoftmaxArithmetic {
ReciprocalMultiply,
Divide,
WidenedF64,
}Expand description
Normalization form used by softmax_rows_with_arithmetic.
Variants§
ReciprocalMultiply
Form one reciprocal then multiply every exponent by it.
Divide
Divide every exponent by the sum directly.
WidenedF64
Exponentiate, sum and normalize in f64, narrowing only at the store — an attribution probe, not a candidate for what the oracle did.
Trait Implementations§
Source§impl Clone for F32SoftmaxArithmetic
impl Clone for F32SoftmaxArithmetic
Source§fn clone(&self) -> F32SoftmaxArithmetic
fn clone(&self) -> F32SoftmaxArithmetic
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 moreimpl Copy for F32SoftmaxArithmetic
Source§impl Debug for F32SoftmaxArithmetic
impl Debug for F32SoftmaxArithmetic
impl Eq for F32SoftmaxArithmetic
Source§impl PartialEq for F32SoftmaxArithmetic
impl PartialEq for F32SoftmaxArithmetic
impl StructuralPartialEq for F32SoftmaxArithmetic
Auto Trait Implementations§
impl Freeze for F32SoftmaxArithmetic
impl RefUnwindSafe for F32SoftmaxArithmetic
impl Send for F32SoftmaxArithmetic
impl Sync for F32SoftmaxArithmetic
impl Unpin for F32SoftmaxArithmetic
impl UnsafeUnpin for F32SoftmaxArithmetic
impl UnwindSafe for F32SoftmaxArithmetic
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