pub struct ComputeGraph { /* private fields */ }
Implementations§
Source§impl ComputeGraph
impl ComputeGraph
pub fn new(aot_module: &AotModule, name: &str) -> Result<ComputeGraph>
pub fn set_arg_i32(&mut self, name: &str, value: i32) -> Result<&mut Self>
pub fn set_arg_f32(&mut self, name: &str, value: f32) -> Result<&mut Self>
pub fn set_arg_ndarray<T>( &mut self, name: &str, value: &NdArray<T>, ) -> Result<&mut Self>
pub fn runtime(&self) -> TiRuntime
pub fn compute_graph(&self) -> TiComputeGraph
pub fn launch(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for ComputeGraph
impl Clone for ComputeGraph
Source§fn clone(&self) -> ComputeGraph
fn clone(&self) -> ComputeGraph
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ComputeGraph
impl RefUnwindSafe for ComputeGraph
impl !Send for ComputeGraph
impl !Sync for ComputeGraph
impl Unpin for ComputeGraph
impl UnwindSafe for ComputeGraph
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