pub struct GroupNormRecord<B>where
B: Backend,{
pub gamma: <Option<Param<Tensor<B, 1>>> as Module<B>>::Record,
pub beta: <Option<Param<Tensor<B, 1>>> as Module<B>>::Record,
pub num_groups: EmptyRecord,
pub num_channels: EmptyRecord,
pub epsilon: EmptyRecord,
pub affine: EmptyRecord,
}Expand description
The record type for the module.
Fields§
§gamma: <Option<Param<Tensor<B, 1>>> as Module<B>>::RecordThe module record associative type.
beta: <Option<Param<Tensor<B, 1>>> as Module<B>>::RecordThe module record associative type.
num_groups: EmptyRecord§num_channels: EmptyRecord§epsilon: EmptyRecord§affine: EmptyRecordTrait Implementations§
Source§impl<B> Record<B> for GroupNormRecord<B>where
B: Backend,
impl<B> Record<B> for GroupNormRecord<B>where
B: Backend,
Source§type Item<S: PrecisionSettings> = GroupNormRecordItem<B, S>
type Item<S: PrecisionSettings> = GroupNormRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Source§fn into_item<S>(self) -> <GroupNormRecord<B> as Record<B>>::Item<S>where
S: PrecisionSettings,
fn into_item<S>(self) -> <GroupNormRecord<B> as Record<B>>::Item<S>where
S: PrecisionSettings,
Convert the current record into the corresponding item that follows the given settings.
Source§fn from_item<S>(
item: <GroupNormRecord<B> as Record<B>>::Item<S>,
device: &<B as BackendTypes>::Device,
) -> GroupNormRecord<B>where
S: PrecisionSettings,
fn from_item<S>(
item: <GroupNormRecord<B> as Record<B>>::Item<S>,
device: &<B as BackendTypes>::Device,
) -> GroupNormRecord<B>where
S: PrecisionSettings,
Convert the given item into a record.
Auto Trait Implementations§
impl<B> !Freeze for GroupNormRecord<B>
impl<B> !RefUnwindSafe for GroupNormRecord<B>
impl<B> Send for GroupNormRecord<B>
impl<B> Sync for GroupNormRecord<B>
impl<B> Unpin for GroupNormRecord<B>where
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
<B as BackendTypes>::QuantizedTensorPrimitive: Unpin,
<B as BackendTypes>::Device: Unpin,
impl<B> UnsafeUnpin for GroupNormRecord<B>where
<B as BackendTypes>::Device: UnsafeUnpin,
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::QuantizedTensorPrimitive: UnsafeUnpin,
impl<B> !UnwindSafe for GroupNormRecord<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