pub struct TransformerWeights { /* private fields */ }
Implementations§
source§impl TransformerWeights
impl TransformerWeights
pub fn from_reader<R: Read>(r: &mut R, c: &Config, dev: &Device) -> Result<Self>
pub fn var_builder( &self, cfg: &Config, device: &Device ) -> Result<VarBuilder<'static>>
Auto Trait Implementations§
impl Freeze for TransformerWeights
impl !RefUnwindSafe for TransformerWeights
impl Send for TransformerWeights
impl Sync for TransformerWeights
impl Unpin for TransformerWeights
impl !UnwindSafe for TransformerWeights
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