#[non_exhaustive]pub struct SessionConfig {
pub outputs: Option<Vec<String>>,
}
Expand description
Provides optional configuration when creating an inference Session.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.outputs: Option<Vec<String>>
When set, only the specified outputs will be calculated, and nodes that are not inputs to these outputs may not be processed
Implementations§
Source§impl SessionConfig
impl SessionConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SessionConfig struct with the default options set.
Sourcepub fn with_outputs(self, outputs: Option<Vec<String>>) -> Self
pub fn with_outputs(self, outputs: Option<Vec<String>>) -> Self
Sets SessionConfig::outputs
to the specified value and returns Self.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnwindSafe for SessionConfig
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