Struct tensorflow::eager::ContextOptions
source · pub struct ContextOptions { /* private fields */ }
Expand description
Options that can be passed during context creation.
Implementations§
source§impl ContextOptions
impl ContextOptions
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 ContextOptions
impl Debug for ContextOptions
source§impl Default for ContextOptions
impl Default for ContextOptions
Auto Trait Implementations§
impl RefUnwindSafe for ContextOptions
impl !Send for ContextOptions
impl !Sync for ContextOptions
impl Unpin for ContextOptions
impl UnwindSafe for ContextOptions
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