pub struct MlConfig {
pub backend: MlBackend,
pub confidence_threshold: f32,
pub batch_size: usize,
}Expand description
Configuration for an ML agent.
Fields§
§backend: MlBackend§confidence_threshold: f32Confidence threshold below which results are discarded.
batch_size: usizeMaximum batch size for inference.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MlConfig
impl<'de> Deserialize<'de> for MlConfig
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 MlConfig
impl RefUnwindSafe for MlConfig
impl Send for MlConfig
impl Sync for MlConfig
impl Unpin for MlConfig
impl UnwindSafe for MlConfig
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