pub struct TransformerPredictorRecord<B: Backend> {
pub input_proj: <Linear<B> as Module<B>>::Record,
pub output_proj: <Linear<B> as Module<B>>::Record,
pub blocks: <Vec<PredictorBlock<B>> as Module<B>>::Record,
pub norm: <LayerNorm<B> as Module<B>>::Record,
pub prediction_tokens: <Tensor<B, 2> as Module<B>>::Record,
pub predictor_embed_dim: <usize as Module<B>>::Record,
pub encoder_embed_dim: <usize as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§input_proj: <Linear<B> as Module<B>>::RecordThe module record associative type.
output_proj: <Linear<B> as Module<B>>::RecordThe module record associative type.
blocks: <Vec<PredictorBlock<B>> as Module<B>>::RecordThe module record associative type.
norm: <LayerNorm<B> as Module<B>>::RecordThe module record associative type.
prediction_tokens: <Tensor<B, 2> as Module<B>>::RecordThe module record associative type.
predictor_embed_dim: <usize as Module<B>>::RecordThe module record associative type.
encoder_embed_dim: <usize as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for TransformerPredictorRecord<B>
impl<B: Backend> Record<B> for TransformerPredictorRecord<B>
Source§type Item<S: PrecisionSettings> = TransformerPredictorRecordItem<B, S>
type Item<S: PrecisionSettings> = TransformerPredictorRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for TransformerPredictorRecord<B>
impl<B> !RefUnwindSafe for TransformerPredictorRecord<B>
impl<B> Send for TransformerPredictorRecord<B>
impl<B> !Sync for TransformerPredictorRecord<B>
impl<B> Unpin for TransformerPredictorRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnsafeUnpin for TransformerPredictorRecord<B>where
<B as Backend>::FloatTensorPrimitive: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive: UnsafeUnpin,
<B as Backend>::Device: UnsafeUnpin,
impl<B> !UnwindSafe for TransformerPredictorRecord<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