Struct executorch_sys::torch::executor::Program

source ·
#[repr(C, align(8))]
pub struct Program { pub _bindgen_opaque_blob: [u64; 11], }
Expand description

A deserialized ExecuTorch program binary.

Fields§

§_bindgen_opaque_blob: [u64; 11]

Implementations§

source§

impl Program

source

pub unsafe fn load( loader: *mut DataLoader, verification: Program_Verification, ) -> Result<Program>

source

pub unsafe fn get_constant_buffer_data( &self, buffer_idx: usize, nbytes: usize, ) -> Result<*const c_void>

source

pub unsafe fn num_methods(&self) -> usize

source

pub unsafe fn get_method_name( &self, method_index: usize, ) -> Result<*const c_char>

source

pub unsafe fn load_method( &self, method_name: *const c_char, memory_manager: *mut MemoryManager, event_tracer: *mut EventTracer, ) -> Result<Method>

source

pub unsafe fn method_meta( &self, method_name: *const c_char, ) -> Result<MethodMeta>

source

pub unsafe fn get_non_const_buffer_size( &self, buffer_index: usize, method_name: *const c_char, ) -> Result<i64>

source

pub unsafe fn num_non_const_buffers( &self, method_name: *const c_char, ) -> Result<usize>

source

pub unsafe fn get_output_flattening_encoding( &self, method_name: *const c_char, ) -> Result<*const c_char>

source

pub unsafe fn check_header( data: *const c_void, size: usize, ) -> Program_HeaderStatus

Trait Implementations§

source§

impl Debug for Program

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.