pub enum ExistsStrategy {
Sum,
Max,
LogSumExp,
Mean,
}Expand description
Strategy for compiling existential quantifiers (∃).
Variants§
Sum
Sum reduction: sum(P, axis)
- Soft semantics (counts satisfying instances)
- Differentiable
Max
Max reduction: max(P, axis)
- Hard semantics (true if any instance satisfies)
- Not differentiable at unique maximum
LogSumExp
LogSumExp: log(sum(exp(P), axis))
- Smooth approximation to max
- Differentiable
Mean
Mean reduction: mean(P, axis)
- Normalized soft semantics
- Differentiable
Trait Implementations§
Source§impl Clone for ExistsStrategy
impl Clone for ExistsStrategy
Source§fn clone(&self) -> ExistsStrategy
fn clone(&self) -> ExistsStrategy
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 ExistsStrategy
impl Debug for ExistsStrategy
Source§impl<'de> Deserialize<'de> for ExistsStrategy
impl<'de> Deserialize<'de> for ExistsStrategy
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 ExistsStrategy
impl PartialEq for ExistsStrategy
Source§impl Serialize for ExistsStrategy
impl Serialize for ExistsStrategy
impl Copy for ExistsStrategy
impl Eq for ExistsStrategy
impl StructuralPartialEq for ExistsStrategy
Auto Trait Implementations§
impl Freeze for ExistsStrategy
impl RefUnwindSafe for ExistsStrategy
impl Send for ExistsStrategy
impl Sync for ExistsStrategy
impl Unpin for ExistsStrategy
impl UnwindSafe for ExistsStrategy
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.