Struct rust_faces::InferParams
source · pub struct InferParams {
pub provider: Provider,
pub intra_threads: Option<usize>,
pub inter_threads: Option<usize>,
}Expand description
Inference parameters.
Fields§
§provider: ProviderChooses the ONNX runtime provider.
intra_threads: Option<usize>Sets the number of intra-op threads.
inter_threads: Option<usize>Sets the number of inter-op threads.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for InferParams
impl Send for InferParams
impl Sync for InferParams
impl Unpin for InferParams
impl UnwindSafe for InferParams
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().