Struct wasmedge_tensorflow_interface::TFSession
source · pub struct TFSession { /* private fields */ }
Implementations§
source§impl TFSession
impl TFSession
pub fn new<S: AsRef<[u8]>>(model_buf: S) -> TFSession
pub fn new_from_saved_model(model_path: &str, tags: &[&str]) -> TFSession
pub fn add_input<T: TensorType>( &mut self, name: &str, tensor_buf: &[T], shape: &[u64] ) -> &mut TFSession
pub fn add_output(&mut self, name: &str) -> &mut TFSession
pub fn clear_input(&mut self) -> &mut TFSession
pub fn clear_output(&mut self) -> &mut TFSession
pub fn run(&mut self) -> &mut TFSession
pub fn get_output<T: TensorType>(&self, name: &str) -> Vec<T>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TFSession
impl Send for TFSession
impl Sync for TFSession
impl Unpin for TFSession
impl UnwindSafe for TFSession
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