Expand description
Re-export of whole mnn-sys
Modules§
Structs§
- Backend
- CString
- Interpreter
- MNNBackend
Config - MNNSchedule
Config - Memory
Mode - Power
Mode - Precision
Mode - Session
- Tensor
- Tensor
Info - Tensor
Info Array - Tensor
Shape - __
fsid_ t - halide_
buffer_ t - \file
- halide_
device_ interface_ impl_ t - An opaque struct containing per-GPU API implementations of the device functions.
- halide_
device_ interface_ t - Each GPU API provides a halide_device_interface_t struct pointing to the code that manages device allocations. You can access these functions directly from the struct member function pointers, or by calling the functions declared below. Note that the global functions are not available when using Halide as a JIT compiler. If you are using raw halide_buffer_t in that context you must use the function pointers in the device_interface struct.
- halide_
dimension_ t - halide_
type_ t - A runtime tag for a type in the halide type system. Can be ints, unsigned ints, or floats of various bit-widths (the ‘bits’ field). Can also be vectors of the same (by setting the ‘lanes’ field to something larger than one). This struct should be exactly 32-bits in size.
- max_
align_ t
Enums§
- Dimension
Type - Error
Code - Handle
Data Type - MNNForward
Type - MNNGpu
Mode - MapType
- Runtime
Status - acquire runtime status by Runtime::getCurrentStatus with following keys,
- halide_
type_ code_ t - Types in the halide type system. They can be ints, unsigned ints, or floats (of various bit-widths), or a handle (which is always 64-bits). Note that the int/uint/float values do not imply a specific bit width (the bit width is expected to be encoded in a separate value).
Constants§
- INT8_
MAX - INT8_
MIN - INT16_
MAX - INT16_
MIN - INT32_
MAX - INT32_
MIN - INTPTR_
MAX - INTPTR_
MIN - INT_
FAST8_ MAX - INT_
FAST8_ MIN - INT_
FAST16_ MAX - INT_
FAST16_ MIN - INT_
FAST32_ MAX - INT_
FAST32_ MIN - INT_
LEAS T8_ MAX - INT_
LEAS T8_ MIN - INT_
LEAS T16_ MAX - INT_
LEAS T16_ MIN - INT_
LEAS T32_ MAX - INT_
LEAS T32_ MIN - PTRDIFF_
MAX - PTRDIFF_
MIN - SIG_
ATOMIC_ MAX - SIG_
ATOMIC_ MIN - SIZE_
MAX - UINT8_
MAX - UINT16_
MAX - UINT32_
MAX - UINTPTR_
MAX - UINT_
FAST8_ MAX - UINT_
FAST16_ MAX - UINT_
FAST32_ MAX - UINT_
LEAS T8_ MAX - UINT_
LEAS T16_ MAX - UINT_
LEAS T32_ MAX - WINT_
MAX - WINT_
MIN - _ATFILE_
SOURCE - _BITS_
STDINT_ INTN_ H - _BITS_
STDINT_ LEAST_ H - _BITS_
STDINT_ UINTN_ H - _BITS_
TIME64_ H - _BITS_
TYPESIZES_ H - _BITS_
TYPES_ H - _BITS_
WCHAR_ H - _DEFAULT_
SOURCE - _FEATURES_
H - _POSIX_
C_ SOURCE - _POSIX_
SOURCE - _STDC_
PREDEF_ H - _STDINT_
H - _SYS_
CDEFS_ H - __
FD_ SETSIZE - __
GLIBC_ MINOR__ - __
GLIBC_ USE_ C23_ STRTOL - __
GLIBC_ USE_ DEPRECATED_ GETS - __
GLIBC_ USE_ DEPRECATED_ SCANF - __
GLIBC_ USE_ IEC_ 60559_ BFP_ EXT - __
GLIBC_ USE_ IEC_ 60559_ BFP_ EXT_ C23 - __
GLIBC_ USE_ IEC_ 60559_ EXT - __
GLIBC_ USE_ IEC_ 60559_ FUNCS_ EXT - __
GLIBC_ USE_ IEC_ 60559_ FUNCS_ EXT_ C23 - __
GLIBC_ USE_ IEC_ 60559_ TYPES_ EXT - __
GLIBC_ USE_ ISOC23 - __
GLIBC_ USE_ LIB_ EXT2 - __
GLIBC__ - __
GNU_ LIBRARY__ - __
HAVE_ GENERIC_ SELECTION - __
INO_ T_ MATCHES_ INO64_ T - __
KERNEL_ OLD_ TIMEVAL_ MATCHES_ TIMEVA L64 - __
LDOUBLE_ REDIRECTS_ TO_ FLOA T128_ ABI - __
OFF_ T_ MATCHES_ OFF64_ T - __
RLIM_ T_ MATCHES_ RLIM64_ T - __
STATFS_ MATCHES_ STATF S64 - __
STDC_ IEC_ 559_ COMPLEX__ - __
STDC_ IEC_ 559__ - __
STDC_ IEC_ 60559_ BFP__ - __
STDC_ IEC_ 60559_ COMPLEX__ - __
STDC_ ISO_ 10646__ - __
SYSCALL_ WORDSIZE - __
TIMESIZE - __
USE_ ATFILE - __
USE_ FORTIFY_ LEVEL - __
USE_ ISOC11 - __
USE_ ISOC95 - __
USE_ ISOC99 - __
USE_ MISC - __
USE_ POSIX - __
USE_ POSI X2 - __
USE_ POSI X199309 - __
USE_ POSI X199506 - __
USE_ POSIX_ IMPLICITLY - __
USE_ TIME_ BITS64 - __
USE_ XOPE N2K - __
USE_ XOPE N2K8 - __
WORDSIZE - __
WORDSIZE_ TIME64_ COMPA T32 - __
bool_ true_ false_ are_ defined - __
glibc_ c99_ flexarr_ available - false_
- halide_
buffer_ flags_ halide_ buffer_ flag_ device_ dirty - halide_
buffer_ flags_ halide_ buffer_ flag_ host_ dirty - true_
Traits§
Functions§
- Interpreter_
bizCode ⚠ - Interpreter_
create ⚠From Buffer - @brief create net from buffer. @param buffer given data buffer. @param size size of data buffer. @return created net if success, NULL otherwise.
- Interpreter_
create ⚠From File - @brief create net from file. @param file given file. @return created net if success, NULL otherwise.
- Interpreter_
create ⚠Multi Path Session - Interpreter_
create ⚠Session - Interpreter_
destroy ⚠ - Interpreter_
getBackend ⚠ - Interpreter_
getModel ⚠Version - Interpreter_
getSession ⚠Info - Interpreter_
getSession ⚠Input - Interpreter_
getSession ⚠Input All - Interpreter_
getSession ⚠Output - Interpreter_
getSession ⚠Output All - Interpreter_
release ⚠Model - Interpreter_
release ⚠Session - Interpreter_
resize ⚠Session - Interpreter_
resize ⚠Session With Flag - Interpreter_
resize ⚠Tensor - Interpreter_
resize ⚠Tensor ByNCHW - Interpreter_
runSession ⚠ - Interpreter_
runSession ⚠With Call Back Info - Interpreter_
setCache ⚠File - Interpreter_
setExternal ⚠File - Interpreter_
setSession ⚠Hint - Interpreter_
setSession ⚠Mode - Interpreter_
update ⚠Cache File - Interpreter_
update ⚠Session ToModel - Interpreter_
uuid ⚠ - Operator
Info_ ⚠flops - Operator
Info_ ⚠name - Operator
Info_ ⚠type - Session_
destroy ⚠ - Session_
hasAsync ⚠Work - Tensor_
batch ⚠ - Tensor_
buffer ⚠ - Tensor_
buffer_ ⚠mut - Tensor_
channel ⚠ - Tensor_
clone ⚠ - Tensor_
copy ⚠From Host Tensor - Tensor_
copy ⚠ToHost Tensor - Tensor_
create ⚠ - Tensor_
create ⚠Device - Tensor_
create ⚠From Tensor - Tensor_
create ⚠Host Tensor From Device - Tensor_
create ⚠With - Tensor_
destroy ⚠ - Tensor_
device ⚠Id - Tensor_
dimensions ⚠ - Tensor_
element ⚠Size - Tensor_
getDevice ⚠Info - Tensor_
getDimension ⚠Type - Tensor_
getType ⚠ - Tensor_
height ⚠ - Tensor_
host ⚠ - Tensor_
host_ ⚠mut - Tensor_
isType ⚠Of - Tensor_
length ⚠ - Tensor_
map ⚠ - Tensor_
print ⚠ - Tensor_
print ⚠Shape - Tensor_
setDevice ⚠Ptr - Tensor_
setLength ⚠ - Tensor_
setStride ⚠ - Tensor_
shape ⚠ - Tensor_
size ⚠ - Tensor_
stride ⚠ - Tensor_
unmap ⚠ - Tensor_
usize ⚠ - Tensor_
wait ⚠ - Tensor_
width ⚠ - createC
String ⚠ - create
Tensor ⚠Info Array - destroyC
String ⚠ - destroy
Tensor ⚠Info Array - getTensor
Info ⚠Array - getVersion⚠
- @brief get mnn version info. @return mnn version string.
- halide_
type_ of - mnnbc_
clone ⚠ - mnnbc_
create ⚠ - mnnbc_
destroy ⚠ - mnnbc_
get_ ⚠memory_ mode - mnnbc_
get_ ⚠power_ mode - mnnbc_
get_ ⚠precision_ mode - mnnbc_
reset ⚠ - mnnbc_
set_ ⚠flags - mnnbc_
set_ ⚠memory_ mode - mnnbc_
set_ ⚠power_ mode - mnnbc_
set_ ⚠precision_ mode - mnnbc_
set_ ⚠shared_ context - mnnsc_
clone ⚠ - mnnsc_
create ⚠ - mnnsc_
destroy ⚠ - mnnsc_
get_ ⚠backup_ type - mnnsc_
get_ ⚠type - mnnsc_
set_ ⚠backend_ config - mnnsc_
set_ ⚠backup_ type - mnnsc_
set_ ⚠mode - mnnsc_
set_ ⚠num_ threads - mnnsc_
set_ ⚠save_ tensors - mnnsc_
set_ ⚠type - model
PrintIO ⚠
Type Aliases§
- __
blkcnt64_ t - __
blkcnt_ t - __
blksize_ t - __
caddr_ t - __
clock_ t - __
clockid_ t - __
daddr_ t - __dev_t
- __
fsblkcnt64_ t - __
fsblkcnt_ t - __
fsfilcnt64_ t - __
fsfilcnt_ t - __
fsword_ t - __gid_t
- __id_t
- __
ino64_ t - __ino_t
- __
int8_ t - __
int16_ t - __
int32_ t - __
int64_ t - __
int_ least8_ t - __
int_ least16_ t - __
int_ least32_ t - __
int_ least64_ t - __
intmax_ t - __
intptr_ t - __key_t
- __
loff_ t - __
mode_ t - __
nlink_ t - __
off64_ t - __off_t
- __pid_t
- __
quad_ t - __
rlim64_ t - __
rlim_ t - __
sig_ atomic_ t - __
socklen_ t - __
ssize_ t - __
suseconds64_ t - __
suseconds_ t - __
syscall_ slong_ t - __
syscall_ ulong_ t - __
time_ t - __
timer_ t - __
u_ char - __u_int
- __
u_ long - __
u_ quad_ t - __
u_ short - __uid_t
- __
uint8_ t - __
uint16_ t - __
uint32_ t - __
uint64_ t - __
uint_ least8_ t - __
uint_ least16_ t - __
uint_ least32_ t - __
uint_ least64_ t - __
uintmax_ t - __
useconds_ t - halide_
buffer_ flags - int_
fast8_ t - int_
fast16_ t - int_
fast32_ t - int_
fast64_ t - int_
least8_ t - int_
least16_ t - int_
least32_ t - int_
least64_ t - intmax_
t - uint_
fast8_ t - uint_
fast16_ t - uint_
fast32_ t - uint_
fast64_ t - uint_
least8_ t - uint_
least16_ t - uint_
least32_ t - uint_
least64_ t - uintmax_
t - wchar_t