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