Enum ActivationRecord
pub enum ActivationRecord<B>where
B: Backend,{
Gelu(<Gelu as Module<B>>::Record),
PRelu(<PRelu<B> as Module<B>>::Record),
Relu(<Relu as Module<B>>::Record),
LeakyRelu(<LeakyRelu as Module<B>>::Record),
SwiGlu(<SwiGlu<B> as Module<B>>::Record),
Sigmoid(<Sigmoid as Module<B>>::Record),
Tanh(<Tanh as Module<B>>::Record),
HardSigmoid(<HardSigmoid as Module<B>>::Record),
}Expand description
The record type for the module.
Variants§
Gelu(<Gelu as Module<B>>::Record)
The module record associative type.
PRelu(<PRelu<B> as Module<B>>::Record)
The module record associative type.
Relu(<Relu as Module<B>>::Record)
The module record associative type.
LeakyRelu(<LeakyRelu as Module<B>>::Record)
The module record associative type.
SwiGlu(<SwiGlu<B> as Module<B>>::Record)
The module record associative type.
Sigmoid(<Sigmoid as Module<B>>::Record)
The module record associative type.
Tanh(<Tanh as Module<B>>::Record)
The module record associative type.
HardSigmoid(<HardSigmoid as Module<B>>::Record)
The module record associative type.
Trait Implementations§
§impl<B> Record<B> for ActivationRecord<B>where
B: Backend,
impl<B> Record<B> for ActivationRecord<B>where
B: Backend,
§type Item<S: PrecisionSettings> = ActivationRecordItem<B, S>
type Item<S: PrecisionSettings> = ActivationRecordItem<B, S>
Type of the item that can be serialized and deserialized.
§fn into_item<S>(self) -> <ActivationRecord<B> as Record<B>>::Item<S>where
S: PrecisionSettings,
fn into_item<S>(self) -> <ActivationRecord<B> as Record<B>>::Item<S>where
S: PrecisionSettings,
Convert the current record into the corresponding item that follows the given settings.
§fn from_item<S>(
item: <ActivationRecord<B> as Record<B>>::Item<S>,
device: &<B as Backend>::Device,
) -> ActivationRecord<B>where
S: PrecisionSettings,
fn from_item<S>(
item: <ActivationRecord<B> as Record<B>>::Item<S>,
device: &<B as Backend>::Device,
) -> ActivationRecord<B>where
S: PrecisionSettings,
Convert the given item into a record.
Auto Trait Implementations§
impl<B> !Freeze for ActivationRecord<B>
impl<B> !RefUnwindSafe for ActivationRecord<B>
impl<B> Send for ActivationRecord<B>
impl<B> !Sync for ActivationRecord<B>
impl<B> Unpin for ActivationRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> !UnwindSafe for ActivationRecord<B>
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> 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