Struct tensorflow::SessionOptions
source · pub struct SessionOptions { /* private fields */ }
Expand description
Options that can be passed during session creation.
Implementations§
source§impl SessionOptions
impl SessionOptions
sourcepub fn set_target(&mut self, target: &str) -> Result<(), NulError>
pub fn set_target(&mut self, target: &str) -> Result<(), NulError>
Set the target.
target
can be empty, a single entry, or a comma separated list of entries.
Each entry is in one of the following formats :
- “local”
- ip:port
- host:port
sourcepub fn set_config(&mut self, config: &[u8]) -> Result<()>
pub fn set_config(&mut self, config: &[u8]) -> Result<()>
Set the config.
config
should be a serialized ConfigProto
proto.
Returns an error if config was not parsed successfully as a ConfigProto
.
Trait Implementations§
source§impl Debug for SessionOptions
impl Debug for SessionOptions
source§impl Default for SessionOptions
impl Default for SessionOptions
Auto Trait Implementations§
impl RefUnwindSafe for SessionOptions
impl !Send for SessionOptions
impl !Sync for SessionOptions
impl Unpin 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