#[repr(C)]pub struct TfLiteExternalContext {
pub type_: TfLiteExternalContextType,
pub Refresh: Option<unsafe extern "C" fn(context: *mut TfLiteContext) -> TfLiteStatus>,
}Expand description
An external context is a collection of information unrelated to the TF Lite framework, but useful to a subset of the ops. TF Lite knows very little about the actual contexts, but it keeps a list of them, and is able to refresh them if configurations like the number of recommended threads change.
Fields§
§type_: TfLiteExternalContextType§Refresh: Option<unsafe extern "C" fn(context: *mut TfLiteContext) -> TfLiteStatus>Trait Implementations§
Source§impl Clone for TfLiteExternalContext
impl Clone for TfLiteExternalContext
Source§fn clone(&self) -> TfLiteExternalContext
fn clone(&self) -> TfLiteExternalContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TfLiteExternalContext
impl Debug for TfLiteExternalContext
impl Copy for TfLiteExternalContext
Auto Trait Implementations§
impl Freeze for TfLiteExternalContext
impl RefUnwindSafe for TfLiteExternalContext
impl Send for TfLiteExternalContext
impl Sync for TfLiteExternalContext
impl Unpin for TfLiteExternalContext
impl UnsafeUnpin for TfLiteExternalContext
impl UnwindSafe for TfLiteExternalContext
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