pub struct LoRAAdapter { /* private fields */ }Expand description
LoRA adapter matrices
Implementations§
Source§impl LoRAAdapter
impl LoRAAdapter
Sourcepub fn new(config: LoRAConfig) -> Self
pub fn new(config: LoRAConfig) -> Self
Create new LoRA adapter
Sourcepub fn update_count(&self) -> u64
pub fn update_count(&self) -> u64
Get update count
Trait Implementations§
Source§impl Clone for LoRAAdapter
impl Clone for LoRAAdapter
Source§fn clone(&self) -> LoRAAdapter
fn clone(&self) -> LoRAAdapter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LoRAAdapter
impl RefUnwindSafe for LoRAAdapter
impl Send for LoRAAdapter
impl Sync for LoRAAdapter
impl Unpin for LoRAAdapter
impl UnwindSafe for LoRAAdapter
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