Struct carton::info::CartonInfo
source · pub struct CartonInfo<T>where
T: TensorStorage,{Show 13 fields
pub model_name: Option<String>,
pub short_description: Option<String>,
pub model_description: Option<String>,
pub license: Option<String>,
pub repository: Option<String>,
pub homepage: Option<String>,
pub required_platforms: Option<Vec<Triple>>,
pub inputs: Option<Vec<TensorSpec>>,
pub outputs: Option<Vec<TensorSpec>>,
pub self_tests: Option<Vec<SelfTest<T>>>,
pub examples: Option<Vec<Example<T>>>,
pub runner: RunnerInfo,
pub misc_files: Option<HashMap<String, ArcMiscFileLoader>>,
}
Fields§
§model_name: Option<String>
The name of the model
short_description: Option<String>
A short description (should be 100 characters or less)
model_description: Option<String>
The model description
license: Option<String>
The license for this model. This should be an SPDX expression, but may not be for non-SPDX license types.
repository: Option<String>
A URL for a repository for this model
homepage: Option<String>
A URL for a website that is the homepage for this model
required_platforms: Option<Vec<Triple>>
A list of platforms this model supports If empty or unspecified, all platforms are okay
inputs: Option<Vec<TensorSpec>>
A list of inputs for the model Can be empty
outputs: Option<Vec<TensorSpec>>
A list of outputs for the model Can be empty
self_tests: Option<Vec<SelfTest<T>>>
Test data Can be empty
examples: Option<Vec<Example<T>>>
Examples Can be empty
runner: RunnerInfo
Information about the runner to use
misc_files: Option<HashMap<String, ArcMiscFileLoader>>
Misc files that can be referenced by the description. The key is a normalized relative path (i.e one that does not reference parent directories, etc)
Trait Implementations§
source§impl<T: TensorStorage> Clone for CartonInfo<T>
impl<T: TensorStorage> Clone for CartonInfo<T>
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.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for CartonInfo<T>
impl<T> Send for CartonInfo<T>
impl<T> Sync for CartonInfo<T>
impl<T> Unpin for CartonInfo<T>
impl<T> !UnwindSafe for CartonInfo<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