Enum mnn::interpreter::SessionMode

source ·
#[repr(u32)]
pub enum SessionMode {
Show 16 variants Debug = 0, Release = 1, InputInside = 2, InputUser = 3, OutputInside = 4, OutputUser = 5, ResizeDirect = 6, ResizeDefer = 7, BackendFix = 8, BackendAuto = 9, MemoryCollect = 10, MemoryCache = 11, CodegenDisable = 12, CodegenEnable = 13, ResizeCheck = 14, ResizeFix = 15,
}

Variants§

§

Debug = 0

About CallBack, Default Session_Debug*/ /** runSessionWithCallBack is allowed and can get internal op info

§

Release = 1

runSessionWithCallBack is not valid and can’t get any info of op in session

§

InputInside = 2

About input tensor, Default Session_Input_Inside*/ /** The input tensor is alloced by session, input data after session resized

§

InputUser = 3

The input tensor is alloced by user, set input data before session resize

§

OutputInside = 4

The output tensor depends on session, and can’t be separate used

§

OutputUser = 5

The output tensor can be separated from session

§

ResizeDirect = 6

Try Resize Session when create Session or not, default direct:

§

ResizeDefer = 7

Try Resize Session when create Session or not, default direct:

§

BackendFix = 8

Determine the Execution’s forward type is determine by user or auto determine

§

BackendAuto = 9

Determine the Execution’s forward type is determine by user or auto determine

§

MemoryCollect = 10

Determine static memory whether recyle in resizeSession or just cache the memory

§

MemoryCache = 11

Determine static memory whether recyle in resizeSession or just cache the memory

§

CodegenDisable = 12

Determine whether use codegen function

§

CodegenEnable = 13

Determine whether use codegen function

§

ResizeCheck = 14

Dynamic Reisze Optimization

§

ResizeFix = 15

Dynamic Reisze Optimization

Trait Implementations§

source§

impl Clone for SessionMode

source§

fn clone(&self) -> SessionMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SessionMode

source§

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

Formats the value using the given formatter. Read more
source§

impl Copy for SessionMode

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> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.