pub struct AotModule { /* private fields */ }
Implementations§
Source§impl AotModule
impl AotModule
pub fn load(runtime: &Runtime, module_dir: &str) -> Result<AotModule>
pub fn new(runtime: &Runtime, tcm: &[u8]) -> Result<AotModule>
pub fn get_compute_graph(&self, name: &str) -> Result<ComputeGraph>
pub fn runtime(&self) -> TiRuntime
pub fn aot_module(&self) -> TiAotModule
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AotModule
impl RefUnwindSafe for AotModule
impl !Send for AotModule
impl !Sync for AotModule
impl Unpin for AotModule
impl UnwindSafe for AotModule
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