Enum burn::optim::record::AdaptorRecordItem
pub enum AdaptorRecordItem<O, B, S>where
O: SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>,
B: AutodiffBackend,
S: PrecisionSettings,{
V1(AdaptorRecordItemV1<O, <B as AutodiffBackend>::InnerBackend, S>),
}
Expand description
Optimizer adaptor record item.
Variants§
V1(AdaptorRecordItemV1<O, <B as AutodiffBackend>::InnerBackend, S>)
Version 1.
Trait Implementations§
§impl<'de, O, B, S> Deserialize<'de> for AdaptorRecordItem<O, B, S>where
O: SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>,
B: AutodiffBackend,
S: PrecisionSettings,
impl<'de, O, B, S> Deserialize<'de> for AdaptorRecordItem<O, B, S>where
O: SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>,
B: AutodiffBackend,
S: PrecisionSettings,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdaptorRecordItem<O, B, S>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AdaptorRecordItem<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 AdaptorRecordItem<O, B, S>where
O: SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>,
B: AutodiffBackend,
S: PrecisionSettings,
impl<O, B, S> Serialize for AdaptorRecordItem<O, B, S>where
O: SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>,
B: AutodiffBackend,
S: PrecisionSettings,
§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 AdaptorRecordItem<O, B, S>where
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<0> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Freeze,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<1> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Freeze,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<2> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Freeze,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<3> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Freeze,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<4> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Freeze,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<5> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Freeze,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<6> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Freeze,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<7> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Freeze,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<8> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Freeze,
impl<O, B, S> RefUnwindSafe for AdaptorRecordItem<O, B, S>where
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<0> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<1> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<2> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<3> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<4> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<5> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<6> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<7> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: RefUnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<8> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: RefUnwindSafe,
impl<O, B, S> Send for AdaptorRecordItem<O, B, S>where
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<0> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Send,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<1> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Send,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<2> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Send,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<3> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Send,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<4> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Send,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<5> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Send,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<6> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Send,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<7> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Send,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<8> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Send,
impl<O, B, S> Sync for AdaptorRecordItem<O, B, S>where
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<0> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Sync,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<1> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Sync,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<2> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Sync,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<3> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Sync,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<4> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Sync,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<5> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Sync,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<6> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Sync,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<7> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Sync,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<8> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Sync,
impl<O, B, S> Unpin for AdaptorRecordItem<O, B, S>where
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<0> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Unpin,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<1> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Unpin,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<2> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Unpin,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<3> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Unpin,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<4> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Unpin,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<5> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Unpin,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<6> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Unpin,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<7> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Unpin,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<8> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: Unpin,
impl<O, B, S> UnwindSafe for AdaptorRecordItem<O, B, S>where
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<0> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<1> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<2> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<3> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<4> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<5> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<6> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<7> as Record<<B as AutodiffBackend>::InnerBackend>>::Item<S>: UnwindSafe,
<<O as SimpleOptimizer<<B as AutodiffBackend>::InnerBackend>>::State<8> as Record<<B as AutodiffBackend>::InnerBackend>>::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