[−][src]Struct tensorflow::Session
Manages a single graph and execution.
Methods
impl Session[src]
impl Sessionpub fn new(options: &SessionOptions, graph: &Graph) -> Result<Self>[src]
pub fn new(options: &SessionOptions, graph: &Graph) -> Result<Self>Creates a session.
graph will be be kept alive for the lifetime of the returned session.
New nodes can still be added to graph after this call.
pub fn from_saved_model<P: AsRef<Path>, Tag: AsRef<str>, Tags: IntoIterator<Item = Tag>>(
options: &SessionOptions,
tags: Tags,
graph: &mut Graph,
export_dir: P
) -> Result<Self>[src]
pub fn from_saved_model<P: AsRef<Path>, Tag: AsRef<str>, Tags: IntoIterator<Item = Tag>>(
options: &SessionOptions,
tags: Tags,
graph: &mut Graph,
export_dir: P
) -> Result<Self>Loads a session from an exported model.
pub fn close(&mut self) -> Result<()>[src]
pub fn close(&mut self) -> Result<()>Closes the session.
pub fn run(&mut self, step: &mut SessionRunArgs) -> Result<()>[src]
pub fn run(&mut self, step: &mut SessionRunArgs) -> Result<()>Runs the graph, feeding the inputs and then fetching the outputs requested in the step.
pub fn device_list(&self) -> Result<Vec<Device>>[src]
pub fn device_list(&self) -> Result<Vec<Device>>Lists all devices in a session.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>,