pub enum ActivationKind {
Relu,
Sigmoid,
Tanh,
Gelu,
GeluApprox,
Swish,
Elu,
Softplus,
Identity,
}Expand description
Activation function tag.
Variants§
Implementations§
Source§impl ActivationKind
impl ActivationKind
Sourcepub fn pointwise_mode(self) -> PointwiseMode
pub fn pointwise_mode(self) -> PointwiseMode
Map to the v9 frontend PointwiseMode.
Sourcepub fn cudnn_legacy_mode(self) -> cudnnActivationMode_t
pub fn cudnn_legacy_mode(self) -> cudnnActivationMode_t
Map to the legacy v7 cudnnActivationMode_t for the back-compat
dispatch path. Approximate / parametric activations fall back
to the plain Relu/Sigmoid etc. equivalent.
Trait Implementations§
Source§impl Clone for ActivationKind
impl Clone for ActivationKind
Source§fn clone(&self) -> ActivationKind
fn clone(&self) -> ActivationKind
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 ActivationKind
impl Debug for ActivationKind
Source§impl Hash for ActivationKind
impl Hash for ActivationKind
Source§impl PartialEq for ActivationKind
impl PartialEq for ActivationKind
impl Copy for ActivationKind
impl Eq for ActivationKind
impl StructuralPartialEq for ActivationKind
Auto Trait Implementations§
impl Freeze for ActivationKind
impl RefUnwindSafe for ActivationKind
impl Send for ActivationKind
impl Sync for ActivationKind
impl Unpin for ActivationKind
impl UnsafeUnpin for ActivationKind
impl UnwindSafe for ActivationKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more