Enum burn::optim::record::AdaptorRecordItemV1
pub enum AdaptorRecordItemV1<O, B, S>{
Rank0(<<O as SimpleOptimizer<B>>::State<0> as Record<B>>::Item<S>),
Rank1(<<O as SimpleOptimizer<B>>::State<1> as Record<B>>::Item<S>),
Rank2(<<O as SimpleOptimizer<B>>::State<2> as Record<B>>::Item<S>),
Rank3(<<O as SimpleOptimizer<B>>::State<3> as Record<B>>::Item<S>),
Rank4(<<O as SimpleOptimizer<B>>::State<4> as Record<B>>::Item<S>),
Rank5(<<O as SimpleOptimizer<B>>::State<5> as Record<B>>::Item<S>),
Rank6(<<O as SimpleOptimizer<B>>::State<6> as Record<B>>::Item<S>),
Rank7(<<O as SimpleOptimizer<B>>::State<7> as Record<B>>::Item<S>),
Rank8(<<O as SimpleOptimizer<B>>::State<8> as Record<B>>::Item<S>),
}
Expand description
Optimizer adaptor record item.
Variants§
Rank0(<<O as SimpleOptimizer<B>>::State<0> as Record<B>>::Item<S>)
Rank 0.
Rank1(<<O as SimpleOptimizer<B>>::State<1> as Record<B>>::Item<S>)
Rank 1.
Rank2(<<O as SimpleOptimizer<B>>::State<2> as Record<B>>::Item<S>)
Rank 2.
Rank3(<<O as SimpleOptimizer<B>>::State<3> as Record<B>>::Item<S>)
Rank 3.
Rank4(<<O as SimpleOptimizer<B>>::State<4> as Record<B>>::Item<S>)
Rank 4.
Rank5(<<O as SimpleOptimizer<B>>::State<5> as Record<B>>::Item<S>)
Rank 5.
Rank6(<<O as SimpleOptimizer<B>>::State<6> as Record<B>>::Item<S>)
Rank 6.
Rank7(<<O as SimpleOptimizer<B>>::State<7> as Record<B>>::Item<S>)
Rank 7.
Rank8(<<O as SimpleOptimizer<B>>::State<8> as Record<B>>::Item<S>)
Rank 8.
Trait Implementations§
§impl<'de, O, B, S> Deserialize<'de> for AdaptorRecordItemV1<O, B, S>
impl<'de, O, B, S> Deserialize<'de> for AdaptorRecordItemV1<O, B, S>
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdaptorRecordItemV1<O, B, S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdaptorRecordItemV1<O, B, S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<O, B, S> Serialize for AdaptorRecordItemV1<O, B, S>
impl<O, B, S> Serialize for AdaptorRecordItemV1<O, B, S>
§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<O, B, S> Freeze for AdaptorRecordItemV1<O, B, S>where
<<O as SimpleOptimizer<B>>::State<0> as Record<B>>::Item<S>: Freeze,
<<O as SimpleOptimizer<B>>::State<1> as Record<B>>::Item<S>: Freeze,
<<O as SimpleOptimizer<B>>::State<2> as Record<B>>::Item<S>: Freeze,
<<O as SimpleOptimizer<B>>::State<3> as Record<B>>::Item<S>: Freeze,
<<O as SimpleOptimizer<B>>::State<4> as Record<B>>::Item<S>: Freeze,
<<O as SimpleOptimizer<B>>::State<5> as Record<B>>::Item<S>: Freeze,
<<O as SimpleOptimizer<B>>::State<6> as Record<B>>::Item<S>: Freeze,
<<O as SimpleOptimizer<B>>::State<7> as Record<B>>::Item<S>: Freeze,
<<O as SimpleOptimizer<B>>::State<8> as Record<B>>::Item<S>: Freeze,
impl<O, B, S> RefUnwindSafe for AdaptorRecordItemV1<O, B, S>where
<<O as SimpleOptimizer<B>>::State<0> as Record<B>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<B>>::State<1> as Record<B>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<B>>::State<2> as Record<B>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<B>>::State<3> as Record<B>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<B>>::State<4> as Record<B>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<B>>::State<5> as Record<B>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<B>>::State<6> as Record<B>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<B>>::State<7> as Record<B>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<B>>::State<8> as Record<B>>::Item<S>: RefUnwindSafe,
impl<O, B, S> Send for AdaptorRecordItemV1<O, B, S>where
<<O as SimpleOptimizer<B>>::State<0> as Record<B>>::Item<S>: Send,
<<O as SimpleOptimizer<B>>::State<1> as Record<B>>::Item<S>: Send,
<<O as SimpleOptimizer<B>>::State<2> as Record<B>>::Item<S>: Send,
<<O as SimpleOptimizer<B>>::State<3> as Record<B>>::Item<S>: Send,
<<O as SimpleOptimizer<B>>::State<4> as Record<B>>::Item<S>: Send,
<<O as SimpleOptimizer<B>>::State<5> as Record<B>>::Item<S>: Send,
<<O as SimpleOptimizer<B>>::State<6> as Record<B>>::Item<S>: Send,
<<O as SimpleOptimizer<B>>::State<7> as Record<B>>::Item<S>: Send,
<<O as SimpleOptimizer<B>>::State<8> as Record<B>>::Item<S>: Send,
impl<O, B, S> Sync for AdaptorRecordItemV1<O, B, S>where
<<O as SimpleOptimizer<B>>::State<0> as Record<B>>::Item<S>: Sync,
<<O as SimpleOptimizer<B>>::State<1> as Record<B>>::Item<S>: Sync,
<<O as SimpleOptimizer<B>>::State<2> as Record<B>>::Item<S>: Sync,
<<O as SimpleOptimizer<B>>::State<3> as Record<B>>::Item<S>: Sync,
<<O as SimpleOptimizer<B>>::State<4> as Record<B>>::Item<S>: Sync,
<<O as SimpleOptimizer<B>>::State<5> as Record<B>>::Item<S>: Sync,
<<O as SimpleOptimizer<B>>::State<6> as Record<B>>::Item<S>: Sync,
<<O as SimpleOptimizer<B>>::State<7> as Record<B>>::Item<S>: Sync,
<<O as SimpleOptimizer<B>>::State<8> as Record<B>>::Item<S>: Sync,
impl<O, B, S> Unpin for AdaptorRecordItemV1<O, B, S>where
<<O as SimpleOptimizer<B>>::State<0> as Record<B>>::Item<S>: Unpin,
<<O as SimpleOptimizer<B>>::State<1> as Record<B>>::Item<S>: Unpin,
<<O as SimpleOptimizer<B>>::State<2> as Record<B>>::Item<S>: Unpin,
<<O as SimpleOptimizer<B>>::State<3> as Record<B>>::Item<S>: Unpin,
<<O as SimpleOptimizer<B>>::State<4> as Record<B>>::Item<S>: Unpin,
<<O as SimpleOptimizer<B>>::State<5> as Record<B>>::Item<S>: Unpin,
<<O as SimpleOptimizer<B>>::State<6> as Record<B>>::Item<S>: Unpin,
<<O as SimpleOptimizer<B>>::State<7> as Record<B>>::Item<S>: Unpin,
<<O as SimpleOptimizer<B>>::State<8> as Record<B>>::Item<S>: Unpin,
impl<O, B, S> UnwindSafe for AdaptorRecordItemV1<O, B, S>where
<<O as SimpleOptimizer<B>>::State<0> as Record<B>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<B>>::State<1> as Record<B>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<B>>::State<2> as Record<B>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<B>>::State<3> as Record<B>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<B>>::State<4> as Record<B>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<B>>::State<5> as Record<B>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<B>>::State<6> as Record<B>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<B>>::State<7> as Record<B>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<B>>::State<8> as Record<B>>::Item<S>: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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