[−][src]Struct ssvm_tensorflow_interface::Session
The session structure.
Implementations
impl Session
[src]
pub fn new<S: AsRef<[u8]>>(model_buf: S, mod_type: ModelType) -> Session
[src]
pub fn add_input<T: TensorType>(
&mut self,
name: &str,
tensor_buf: &[T],
shape: &[i64]
) -> &mut Session
[src]
&mut self,
name: &str,
tensor_buf: &[T],
shape: &[i64]
) -> &mut Session
Add input name, dimension, operation index, and input tensor into context.
pub fn add_output(&mut self, name: &str) -> &mut Session
[src]
Add output name and operation index into context.
pub fn clear_input(&mut self) -> &mut Session
[src]
Clear the set input tensors.
pub fn clear_output(&mut self) -> &mut Session
[src]
Clear the set output tensors.
pub fn run(&mut self) -> &mut Session
[src]
Run session.
pub fn get_output<T: TensorType>(&self, name: &str) -> Vec<T>
[src]
Get output tensor data by name.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,