pub struct SessionOptions {
pub intra_threads: Option<usize>,
pub inter_threads: Option<usize>,
pub graph_optimization: GraphOptimization,
pub deterministic: bool,
}Expand description
Runtime-independent session configuration.
Fields§
§intra_threads: Option<usize>Intra-operator worker count; None delegates to the backend.
inter_threads: Option<usize>Inter-operator worker count; None delegates to the backend.
graph_optimization: GraphOptimizationGraph rewrite level.
deterministic: boolRequest deterministic kernels where supported.
Implementations§
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§fn clone(&self) -> SessionOptions
fn clone(&self) -> SessionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionOptions
impl Debug for SessionOptions
Source§impl Default for SessionOptions
impl Default for SessionOptions
Source§impl PartialEq for SessionOptions
impl PartialEq for SessionOptions
Source§fn eq(&self, other: &SessionOptions) -> bool
fn eq(&self, other: &SessionOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SessionOptions
impl StructuralPartialEq for SessionOptions
Auto Trait Implementations§
impl Freeze for SessionOptions
impl RefUnwindSafe for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptions
impl UnwindSafe for SessionOptions
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