Struct executorch_sys::torch::executor::MethodMeta
source · #[repr(C, align(8))]pub struct MethodMeta {
pub _bindgen_opaque_blob: u64,
}Expand description
Describes a a method in an ExecuTorch program.
The program used to create a MethodMeta object must outlive the MethodMeta. It is separate from Method so that this information can be accessed without paying the initialization cost of loading the full Method.
Fields§
§_bindgen_opaque_blob: u64Implementations§
source§impl MethodMeta
impl MethodMeta
pub unsafe fn name(&self) -> *const c_char
pub unsafe fn num_inputs(&self) -> usize
pub unsafe fn input_tag(&self, index: usize) -> Result<Tag>
pub unsafe fn input_tensor_meta(&self, index: usize) -> Result<TensorInfo>
pub unsafe fn num_outputs(&self) -> usize
pub unsafe fn output_tag(&self, index: usize) -> Result<Tag>
pub unsafe fn output_tensor_meta(&self, index: usize) -> Result<TensorInfo>
pub unsafe fn num_memory_planned_buffers(&self) -> usize
pub unsafe fn memory_planned_buffer_size(&self, index: usize) -> Result<i64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MethodMeta
impl RefUnwindSafe for MethodMeta
impl Send for MethodMeta
impl Sync for MethodMeta
impl Unpin for MethodMeta
impl UnwindSafe for MethodMeta
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