Enum ActivationRecordItem
pub enum ActivationRecordItem<B, S>where
B: Backend,
S: PrecisionSettings,{
Gelu(<<Gelu as Module<B>>::Record as Record<B>>::Item<S>),
PRelu(<<PRelu<B> as Module<B>>::Record as Record<B>>::Item<S>),
Relu(<<Relu as Module<B>>::Record as Record<B>>::Item<S>),
LeakyRelu(<<LeakyRelu as Module<B>>::Record as Record<B>>::Item<S>),
SwiGlu(<<SwiGlu<B> as Module<B>>::Record as Record<B>>::Item<S>),
Sigmoid(<<Sigmoid as Module<B>>::Record as Record<B>>::Item<S>),
Tanh(<<Tanh as Module<B>>::Record as Record<B>>::Item<S>),
HardSigmoid(<<HardSigmoid as Module<B>>::Record as Record<B>>::Item<S>),
}Expand description
The record item type for the module.
Variants§
Gelu(<<Gelu as Module<B>>::Record as Record<B>>::Item<S>)
Variant to be serialized.
PRelu(<<PRelu<B> as Module<B>>::Record as Record<B>>::Item<S>)
Variant to be serialized.
Relu(<<Relu as Module<B>>::Record as Record<B>>::Item<S>)
Variant to be serialized.
LeakyRelu(<<LeakyRelu as Module<B>>::Record as Record<B>>::Item<S>)
Variant to be serialized.
SwiGlu(<<SwiGlu<B> as Module<B>>::Record as Record<B>>::Item<S>)
Variant to be serialized.
Sigmoid(<<Sigmoid as Module<B>>::Record as Record<B>>::Item<S>)
Variant to be serialized.
Tanh(<<Tanh as Module<B>>::Record as Record<B>>::Item<S>)
Variant to be serialized.
HardSigmoid(<<HardSigmoid as Module<B>>::Record as Record<B>>::Item<S>)
Variant to be serialized.
Trait Implementations§
§impl<B, S> Clone for ActivationRecordItem<B, S>where
B: Backend,
S: PrecisionSettings,
impl<B, S> Clone for ActivationRecordItem<B, S>where
B: Backend,
S: PrecisionSettings,
§fn clone(&self) -> ActivationRecordItem<B, S>
fn clone(&self) -> ActivationRecordItem<B, S>
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 more§impl<'de, B, S> Deserialize<'de> for ActivationRecordItem<B, S>where
B: Backend,
S: PrecisionSettings,
<<Gelu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<PRelu<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Relu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<LeakyRelu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<SwiGlu<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Sigmoid as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Tanh as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<HardSigmoid as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
impl<'de, B, S> Deserialize<'de> for ActivationRecordItem<B, S>where
B: Backend,
S: PrecisionSettings,
<<Gelu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<PRelu<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Relu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<LeakyRelu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<SwiGlu<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Sigmoid as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Tanh as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<HardSigmoid as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActivationRecordItem<B, S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActivationRecordItem<B, S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<B, S> Serialize for ActivationRecordItem<B, S>where
B: Backend,
S: PrecisionSettings,
<<Gelu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<PRelu<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Relu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<LeakyRelu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<SwiGlu<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Sigmoid as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Tanh as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<HardSigmoid as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
impl<B, S> Serialize for ActivationRecordItem<B, S>where
B: Backend,
S: PrecisionSettings,
<<Gelu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<PRelu<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Relu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<LeakyRelu as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<SwiGlu<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Sigmoid as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Tanh as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<HardSigmoid as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<B, S> Freeze for ActivationRecordItem<B, S>
impl<B, S> !RefUnwindSafe for ActivationRecordItem<B, S>
impl<B, S> Send for ActivationRecordItem<B, S>
impl<B, S> Sync for ActivationRecordItem<B, S>
impl<B, S> Unpin for ActivationRecordItem<B, S>
impl<B, S> !UnwindSafe for ActivationRecordItem<B, S>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more