pub struct LoadOptions {
pub pickle_key: Option<String>,
pub strip_prefix: Option<String>,
}Fields§
§pickle_key: Option<String>Descend into this top-level dict before collecting tensors (pickle
inputs only), e.g. state_dict for PyTorch Lightning checkpoints.
strip_prefix: Option<String>Strip this prefix from every tensor name that carries it.
Trait Implementations§
Source§impl Default for LoadOptions
impl Default for LoadOptions
Source§fn default() -> LoadOptions
fn default() -> LoadOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadOptions
impl RefUnwindSafe for LoadOptions
impl Send for LoadOptions
impl Sync for LoadOptions
impl Unpin for LoadOptions
impl UnsafeUnpin for LoadOptions
impl UnwindSafe for LoadOptions
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