Skip to main content

OptionFlag

Enum OptionFlag 

Source
#[non_exhaustive]
pub enum OptionFlag {
Show 28 variants LightMode, Winograd, Sgemm, Int8Inference, Packing, Fp16Packed, Fp16Storage, Fp16Arithmetic, Bf16Storage, LocalPool, Winograd23, Winograd43, Winograd63, MappedModelLoading, SubgroupOps, Int8Packed, Int8Storage, Int8Arithmetic, Bf16Packed, TensorStorage, WeightsInHostMemory, ShaderLocalMemory, CooperativeMatrix, A53A55OptimizedKernel, Fp16Uniform, Int8Uniform, Int16Packed, Int16Storage,
}
Expand description

Independent native boolean preferences. Native capability dispatch remains authoritative.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

LightMode

Releases cached intermediate blobs after use.

§

Winograd

Enables Winograd convolution.

§

Sgemm

Enables single-precision matrix multiplication.

§

Int8Inference

Enables INT8 inference paths.

§

Packing

Enables packed element layouts.

§

Fp16Packed

Enables packed FP16 storage.

§

Fp16Storage

Stores activations as FP16.

§

Fp16Arithmetic

Uses FP16 arithmetic where available.

§

Bf16Storage

Stores activations as BF16.

§

LocalPool

Uses the per-network blob pool.

§

Winograd23

Enables 3x3 Winograd kernels.

§

Winograd43

Enables 5x5 Winograd kernels.

§

Winograd63

Enables 7x7 Winograd kernels.

§

MappedModelLoading

Maps model files instead of copying them.

§

SubgroupOps

Allows Vulkan subgroup operations.

§

Int8Packed

Enables packed INT8 storage.

§

Int8Storage

Stores activations as INT8.

§

Int8Arithmetic

Uses INT8 arithmetic where available.

§

Bf16Packed

Enables packed BF16 storage.

§

TensorStorage

Uses tensor storage for Vulkan buffers.

§

WeightsInHostMemory

Keeps Vulkan weights in host memory.

§

ShaderLocalMemory

Prefers shader local memory.

§

CooperativeMatrix

Allows cooperative matrix instructions.

§

A53A55OptimizedKernel

Selects kernels tuned for Cortex-A53 and A55.

§

Fp16Uniform

Uses FP16 uniform buffers.

§

Int8Uniform

Uses INT8 uniform buffers.

§

Int16Packed

Enables packed INT16 storage.

§

Int16Storage

Stores activations as INT16.

Trait Implementations§

Source§

impl Clone for OptionFlag

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for OptionFlag

Source§

impl Debug for OptionFlag

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.