pub enum NotStrategy {
Complement,
Sigmoid {
temperature: u8,
},
}Expand description
Strategy for compiling NOT operations.
Variants§
Complement
Complement: 1 - a
- Standard negation
- Differentiable
Sigmoid
Temperature-controlled sigmoid: 1 / (1 + exp(T * a))
- Smoother gradients
- Configurable sharpness via temperature
Trait Implementations§
Source§impl Clone for NotStrategy
impl Clone for NotStrategy
Source§fn clone(&self) -> NotStrategy
fn clone(&self) -> NotStrategy
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 NotStrategy
impl Debug for NotStrategy
Source§impl<'de> Deserialize<'de> for NotStrategy
impl<'de> Deserialize<'de> for NotStrategy
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
Source§impl PartialEq for NotStrategy
impl PartialEq for NotStrategy
Source§impl Serialize for NotStrategy
impl Serialize for NotStrategy
impl Copy for NotStrategy
impl Eq for NotStrategy
impl StructuralPartialEq for NotStrategy
Auto Trait Implementations§
impl Freeze for NotStrategy
impl RefUnwindSafe for NotStrategy
impl Send for NotStrategy
impl Sync for NotStrategy
impl Unpin for NotStrategy
impl UnwindSafe for NotStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.