#[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
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.