Struct tensorflow::eager::Context
source · pub struct Context { /* private fields */ }
Expand description
Context under which operations/functions are executed.
Implementations§
source§impl Context
impl Context
sourcepub fn new(opts: ContextOptions) -> Result<Self>
pub fn new(opts: ContextOptions) -> Result<Self>
Create a Context
sourcepub fn device_list(&self) -> Result<Vec<Device>>
pub fn device_list(&self) -> Result<Vec<Device>>
Lists all devices in a context.
sourcepub fn clear_caches(&mut self)
pub fn clear_caches(&mut self)
Clears the internal caches in the context.
Trait Implementations§
impl Send for Context
impl Sync for Context
Auto Trait Implementations§
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