pub struct PackOpts<T>where
T: TensorStorage,{
pub info: CartonInfo<T>,
pub linked_files: Option<Vec<LinkedFile>>,
}
Expand description
Options that can be specified when packing a model
Fields§
§info: CartonInfo<T>
§linked_files: Option<Vec<LinkedFile>>
Any files to include in the carton as links (instead of the originals)
Trait Implementations§
source§impl<T: TensorStorage> From<CartonInfo<T>> for PackOpts<T>
impl<T: TensorStorage> From<CartonInfo<T>> for PackOpts<T>
source§fn from(value: CartonInfo<T>) -> Self
fn from(value: CartonInfo<T>) -> Self
Converts to this type from the input type.
source§impl From<RunnerInfo> for PackOpts<GenericStorage>
impl From<RunnerInfo> for PackOpts<GenericStorage>
source§fn from(value: RunnerInfo) -> Self
fn from(value: RunnerInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for PackOpts<T>
impl<T> Send for PackOpts<T>
impl<T> Sync for PackOpts<T>
impl<T> Unpin for PackOpts<T>
impl<T> !UnwindSafe for PackOpts<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