pub enum LazyDataSource {
Zip(Arc<Mutex<ZipSource>>),
LegacyMultiStorage(Arc<Mutex<LegacyMultiStorageSource>>),
}Expand description
A data source that can lazily load tensor data.
Variants§
Zip(Arc<Mutex<ZipSource>>)
ZIP archive with lazy loading
LegacyMultiStorage(Arc<Mutex<LegacyMultiStorageSource>>)
Legacy format with multiple storages in single blob
Implementations§
Source§impl LazyDataSource
impl LazyDataSource
Trait Implementations§
Source§impl Clone for LazyDataSource
impl Clone for LazyDataSource
Source§fn clone(&self) -> LazyDataSource
fn clone(&self) -> LazyDataSource
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 LazyDataSource
impl RefUnwindSafe for LazyDataSource
impl Send for LazyDataSource
impl Sync for LazyDataSource
impl Unpin for LazyDataSource
impl UnwindSafe for LazyDataSource
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