Struct candle_lora::NewLayers
source · pub struct NewLayers<T: Eq + PartialEq + Hash> {
pub linear: HashMap<T, LoraLinear>,
pub conv1d: HashMap<T, LoraConv1d>,
pub conv2d: HashMap<T, LoraConv2d>,
pub embed: HashMap<T, LoraEmbedding>,
}
Expand description
New layers, after conversion
Fields§
§linear: HashMap<T, LoraLinear>
§conv1d: HashMap<T, LoraConv1d>
§conv2d: HashMap<T, LoraConv2d>
§embed: HashMap<T, LoraEmbedding>
Auto Trait Implementations§
impl<T> Freeze for NewLayers<T>
impl<T> !RefUnwindSafe for NewLayers<T>
impl<T> Send for NewLayers<T>where
T: Send,
impl<T> Sync for NewLayers<T>where
T: Sync,
impl<T> Unpin for NewLayers<T>where
T: Unpin,
impl<T> !UnwindSafe for NewLayers<T>
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
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