pub struct Model {
pub name: String,
pub internal_name: String,
pub max_batch_size: u32,
pub uses_humansl_profile: bool,
pub version: u32,
pub using_fp16: Enabled,
}Expand description
Information about a neural network model.
Fields§
§name: StringThe model name.
internal_name: StringThe internal name.
max_batch_size: u32The maximum batch size.
uses_humansl_profile: boolWhether it uses a humanSL profile.
version: u32The model version.
using_fp16: EnabledWhether FP16 is used for this model. If this is Auto,
it will be enabled if the backend deems it to be beneficial.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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