pub struct Sam3EncoderWeights {
pub loaded: bool,
pub prefix: String,
pub layers: Vec<Sam3EncoderLayerWeights>,
}Fields§
§loaded: bool§prefix: StringCheckpoint prefix (detector.transformer.encoder or transformer.encoder).
layers: Vec<Sam3EncoderLayerWeights>Trait Implementations§
Source§impl Clone for Sam3EncoderWeights
impl Clone for Sam3EncoderWeights
Source§fn clone(&self) -> Sam3EncoderWeights
fn clone(&self) -> Sam3EncoderWeights
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for Sam3EncoderWeights
impl Default for Sam3EncoderWeights
Source§fn default() -> Sam3EncoderWeights
fn default() -> Sam3EncoderWeights
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Sam3EncoderWeights
impl RefUnwindSafe for Sam3EncoderWeights
impl Send for Sam3EncoderWeights
impl Sync for Sam3EncoderWeights
impl Unpin for Sam3EncoderWeights
impl UnsafeUnpin for Sam3EncoderWeights
impl UnwindSafe for Sam3EncoderWeights
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more