pub struct LayerScaleRecord<B: Backend> {
pub scale: <Param<Tensor<B, 1>> as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§scale: <Param<Tensor<B, 1>> as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for LayerScaleRecord<B>
impl<B: Backend> Record<B> for LayerScaleRecord<B>
Source§type Item<S: PrecisionSettings> = LayerScaleRecordItem<B, S>
type Item<S: PrecisionSettings> = LayerScaleRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for LayerScaleRecord<B>
impl<B> !RefUnwindSafe for LayerScaleRecord<B>
impl<B> !Sync for LayerScaleRecord<B>
impl<B> !UnwindSafe for LayerScaleRecord<B>
impl<B> Send for LayerScaleRecord<B>
impl<B> Unpin for LayerScaleRecord<B>
impl<B> UnsafeUnpin for LayerScaleRecord<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