Struct stablediffusion_wgpu::model::autoencoder::ResnetBlockRecord
source · pub struct ResnetBlockRecord<B: Backend> {
pub norm1: <GroupNorm<B> as Module<B>>::Record,
pub silu1: <SILU as Module<B>>::Record,
pub conv1: <Conv2d<B> as Module<B>>::Record,
pub norm2: <GroupNorm<B> as Module<B>>::Record,
pub silu2: <SILU as Module<B>>::Record,
pub conv2: <Conv2d<B> as Module<B>>::Record,
pub nin_shortcut: <Option<Conv2d<B>> as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§norm1: <GroupNorm<B> as Module<B>>::RecordThe module record associative type.
silu1: <SILU as Module<B>>::RecordThe module record associative type.
conv1: <Conv2d<B> as Module<B>>::RecordThe module record associative type.
norm2: <GroupNorm<B> as Module<B>>::RecordThe module record associative type.
silu2: <SILU as Module<B>>::RecordThe module record associative type.
conv2: <Conv2d<B> as Module<B>>::RecordThe module record associative type.
nin_shortcut: <Option<Conv2d<B>> as Module<B>>::RecordThe module record associative type.
Trait Implementations§
source§impl<B: Clone + Backend> Clone for ResnetBlockRecord<B>
impl<B: Clone + Backend> Clone for ResnetBlockRecord<B>
source§fn clone(&self) -> ResnetBlockRecord<B>
fn clone(&self) -> ResnetBlockRecord<B>
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> Debug for ResnetBlockRecord<B>
impl<B: Debug + Backend> Debug for ResnetBlockRecord<B>
source§impl<B: Backend> Record for ResnetBlockRecord<B>
impl<B: Backend> Record for ResnetBlockRecord<B>
Auto Trait Implementations§
impl<B> RefUnwindSafe for ResnetBlockRecord<B>where
<B as Backend>::TensorPrimitive<1>: RefUnwindSafe,
<B as Backend>::TensorPrimitive<4>: RefUnwindSafe,
impl<B> Send for ResnetBlockRecord<B>
impl<B> Sync for ResnetBlockRecord<B>
impl<B> Unpin for ResnetBlockRecord<B>
impl<B> UnwindSafe for ResnetBlockRecord<B>where
<B as Backend>::TensorPrimitive<1>: UnwindSafe,
<B as Backend>::TensorPrimitive<4>: 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