pub struct DecoderBlockRecordItem<B: Backend, S: PrecisionSettings> {
pub res1: <<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>,
pub res2: <<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>,
pub res3: <<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>,
pub upsampler: <<Option<Conv2d<B>> as Module<B>>::Record as Record>::Item<S>,
}Expand description
The record item type for the module.
Fields§
§res1: <<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>Field to be serialized.
res2: <<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>Field to be serialized.
res3: <<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>Field to be serialized.
upsampler: <<Option<Conv2d<B>> as Module<B>>::Record as Record>::Item<S>Field to be serialized.
Trait Implementations§
source§impl<B: Clone + Backend, S: Clone + PrecisionSettings> Clone for DecoderBlockRecordItem<B, S>
impl<B: Clone + Backend, S: Clone + PrecisionSettings> Clone for DecoderBlockRecordItem<B, S>
source§fn clone(&self) -> DecoderBlockRecordItem<B, S>
fn clone(&self) -> DecoderBlockRecordItem<B, S>
Returns a copy 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<B: Debug + Backend, S: Debug + PrecisionSettings> Debug for DecoderBlockRecordItem<B, S>
impl<B: Debug + Backend, S: Debug + PrecisionSettings> Debug for DecoderBlockRecordItem<B, S>
source§impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for DecoderBlockRecordItem<B, S>where
<<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Conv2d<B>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for DecoderBlockRecordItem<B, S>where
<<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Conv2d<B>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<B: Backend, S: PrecisionSettings> Serialize for DecoderBlockRecordItem<B, S>where
<<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Conv2d<B>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<B: Backend, S: PrecisionSettings> Serialize for DecoderBlockRecordItem<B, S>where
<<ResnetBlock<B> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Conv2d<B>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<B, S> RefUnwindSafe for DecoderBlockRecordItem<B, S>where
<S as PrecisionSettings>::FloatElem: RefUnwindSafe,
impl<B, S> Send for DecoderBlockRecordItem<B, S>
impl<B, S> Sync for DecoderBlockRecordItem<B, S>
impl<B, S> Unpin for DecoderBlockRecordItem<B, S>where
<S as PrecisionSettings>::FloatElem: Unpin,
impl<B, S> UnwindSafe for DecoderBlockRecordItem<B, S>where
<S as PrecisionSettings>::FloatElem: 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