Crate tract_proxy_sys

Crate tract_proxy_sys 

Source

Structs§

TractFact
TractInferenceFact
TractInferenceModel
TractModel
TractNnef
TractOnnx
TractRunnable
TractState
TractValue
__atomic_wide_counter__bindgen_ty_1
__fsid_t
__once_flag
__pthread_cond_s
__pthread_internal_list
__pthread_internal_slist
__pthread_mutex_s
__pthread_rwlock_arch_t
__sigset_t
__va_list_tag
div_t
drand48_data
fd_set
ldiv_t
lldiv_t
random_data
timespec
timeval

Constants§

BIG_ENDIAN
BYTE_ORDER
DatumType_TRACT_DATUM_TYPE_BOOL
DatumType_TRACT_DATUM_TYPE_COMPLEX_F16
DatumType_TRACT_DATUM_TYPE_COMPLEX_F32
DatumType_TRACT_DATUM_TYPE_COMPLEX_F64
DatumType_TRACT_DATUM_TYPE_COMPLEX_I16
DatumType_TRACT_DATUM_TYPE_COMPLEX_I32
DatumType_TRACT_DATUM_TYPE_COMPLEX_I64
DatumType_TRACT_DATUM_TYPE_F16
DatumType_TRACT_DATUM_TYPE_F32
DatumType_TRACT_DATUM_TYPE_F64
DatumType_TRACT_DATUM_TYPE_I8
DatumType_TRACT_DATUM_TYPE_I16
DatumType_TRACT_DATUM_TYPE_I32
DatumType_TRACT_DATUM_TYPE_I64
DatumType_TRACT_DATUM_TYPE_U8
DatumType_TRACT_DATUM_TYPE_U16
DatumType_TRACT_DATUM_TYPE_U32
DatumType_TRACT_DATUM_TYPE_U64
EXIT_FAILURE
EXIT_SUCCESS
FD_SETSIZE
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_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
LITTLE_ENDIAN
PDP_ENDIAN
PTRDIFF_MAX
PTRDIFF_MIN
RAND_MAX
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
TRACT_RESULT_TRACT_RESULT_KO
The function returned an error
TRACT_RESULT_TRACT_RESULT_OK
The function returned successfully
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WCONTINUED
WEXITED
WINT_MAX
WINT_MIN
WNOHANG
WNOWAIT
WSTOPPED
WUNTRACED
_ALLOCA_H
_ATFILE_SOURCE
_BITS_BYTESWAP_H
_BITS_ENDIANNESS_H
_BITS_ENDIAN_H
_BITS_PTHREADTYPES_ARCH_H
_BITS_PTHREADTYPES_COMMON_H
_BITS_STDINT_INTN_H
_BITS_STDINT_LEAST_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_UINTN_IDENTITY_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_ENDIAN_H
_FEATURES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_STDLIB_H
_STRUCT_TIMESPEC
_SYS_CDEFS_H
_SYS_SELECT_H
_SYS_TYPES_H
_THREAD_MUTEX_INTERNAL_H
_THREAD_SHARED_TYPES_H
__BIG_ENDIAN
__BIT_TYPES_DEFINED__
__BYTE_ORDER
__FD_SETSIZE
__FLOAT_WORD_ORDER
__GLIBC_MINOR__
__GLIBC_USE_C2X_STRTOL
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C2X
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2X
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_DISTINCT_FLOAT16
__HAVE_DISTINCT_FLOAT32
__HAVE_DISTINCT_FLOAT64
__HAVE_DISTINCT_FLOAT32X
__HAVE_DISTINCT_FLOAT64X
__HAVE_DISTINCT_FLOAT128
__HAVE_DISTINCT_FLOAT128X
__HAVE_FLOAT16
__HAVE_FLOAT32
__HAVE_FLOAT64
__HAVE_FLOAT32X
__HAVE_FLOAT64X
__HAVE_FLOAT64X_LONG_DOUBLE
__HAVE_FLOAT128
__HAVE_FLOAT128X
__HAVE_FLOATN_NOT_TYPEDEF
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__LITTLE_ENDIAN
__OFF_T_MATCHES_OFF64_T
__PDP_ENDIAN
__PTHREAD_MUTEX_HAVE_PREV
__RLIM_T_MATCHES_RLIM64_T
__SIZEOF_PTHREAD_ATTR_T
__SIZEOF_PTHREAD_BARRIERATTR_T
__SIZEOF_PTHREAD_BARRIER_T
__SIZEOF_PTHREAD_CONDATTR_T
__SIZEOF_PTHREAD_COND_T
__SIZEOF_PTHREAD_MUTEXATTR_T
__SIZEOF_PTHREAD_MUTEX_T
__SIZEOF_PTHREAD_RWLOCKATTR_T
__SIZEOF_PTHREAD_RWLOCK_T
__STATFS_MATCHES_STATFS64
__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_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WALL
__WCLONE
__WCOREFLAG
__WNOTHREAD
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__W_CONTINUED
__bool_true_false_are_defined
__clock_t_defined
__clockid_t_defined
__glibc_c99_flexarr_available
__have_pthread_attr_t
__ldiv_t_defined
__lldiv_t_defined
__sigset_t_defined
__time_t_defined
__timer_t_defined
__timeval_defined
false_
true_

Functions§

_Exit
__ctype_get_mb_cur_max
a64l
abort
abs
aligned_alloc
alloca
arc4random
arc4random_buf
arc4random_uniform
at_quick_exit
atexit
atof
atoi
atol
atoll
bsearch
calloc
clearenv
div
drand48
drand48_r
ecvt
ecvt_r
erand48
erand48_r
exit
fcvt
fcvt_r
free
gcvt
getenv
getloadavg
getsubopt
initstate
initstate_r
jrand48
jrand48_r
l64a
labs
lcong48
lcong48_r
ldiv
llabs
lldiv
lrand48
lrand48_r
malloc
mblen
mbstowcs
mbtowc
mkdtemp
mkstemp
mkstemps
mktemp
mrand48
mrand48_r
nrand48
nrand48_r
on_exit
posix_memalign
pselect
putenv
qecvt
qecvt_r
qfcvt
qfcvt_r
qgcvt
qsort
quick_exit
rand
rand_r
random
random_r
realloc
reallocarray
realpath
rpmatch
seed48
seed48_r
select
setenv
setstate
setstate_r
srand
srand48
srand48_r
srandom
srandom_r
strtod
strtof
strtol
strtold
strtoll
strtoq
strtoul
strtoull
strtouq
system
tract_fact_destroy
tract_fact_dump
Write a fact as its specification string.
tract_fact_parse
Parse a fact specification string into an Fact.
tract_free_cstring
Frees a string allocated by libtract.
tract_get_last_error
Retrieve the last error that happened in this thread. A function encountered an error if its return type is of type TRACT_RESULT and it returned TRACT_RESULT_KO.
tract_inference_fact_destroy
Destroy a fact.
tract_inference_fact_dump
Write an inference fact as its specification string.
tract_inference_fact_empty
Creates an empty inference fact.
tract_inference_fact_parse
Parse a fact specification string into an InferenceFact.
tract_inference_model_analyse
Analyse an InferencedModel in-place.
tract_inference_model_destroy
Destroy an InferenceModel.
tract_inference_model_input_count
Query an InferenceModel input counts.
tract_inference_model_input_fact
tract_inference_model_input_name
Query the name of a model input.
tract_inference_model_into_optimized
Convenience function to obtain an optimized TypedModel from an InferenceModel.
tract_inference_model_into_typed
Transform a fully analysed InferenceModel to a TypedModel.
tract_inference_model_output_count
Query an InferenceModel output counts.
tract_inference_model_output_fact
Query an output fact for an InferenceModel.
tract_inference_model_output_name
Query the name of a model output.
tract_inference_model_set_input_fact
Set an input fact of an InferenceModel.
tract_inference_model_set_output_fact
Set an output fact of an InferenceModel.
tract_inference_model_set_output_names
Change the model outputs nodes (by name).
tract_model_concretize_symbols
Give value one or more symbols used in the model.
tract_model_declutter
Declutter a TypedModel in-place.
tract_model_destroy
Destroy a TypedModel.
tract_model_input_count
Query an InferenceModel input counts.
tract_model_input_fact
Query the input fact of a model.
tract_model_input_name
Query the name of a model input.
tract_model_into_runnable
Convert a TypedModel into a TypedRunnableModel.
tract_model_optimize
Optimize a TypedModel in-place.
tract_model_output_count
Query an InferenceModel output counts.
tract_model_output_fact
Query the output fact of a model.
tract_model_output_name
Query the name of a model output.
tract_model_profile_json
Perform a profile of the model using the provided inputs.
tract_model_property
Query a property value in a model.
tract_model_property_count
Query the number of properties in a model.
tract_model_property_names
Query the properties names of a model.
tract_model_pulse_simple
Pulsify the model
tract_model_set_output_names
Change the model outputs nodes (by name).
tract_model_transform
Apply a transform to the model.
tract_nnef_create
Creates an instance of an NNEF framework and parser that can be used to load and dump NNEF models.
tract_nnef_destroy
Destroy the NNEF parser. It is safe to detroy the NNEF parser once the model had been loaded.
tract_nnef_enable_extended_identifier_syntax
tract_nnef_enable_onnx
tract_nnef_enable_pulse
tract_nnef_enable_tract_core
tract_nnef_enable_tract_extra
tract_nnef_enable_tract_transformers
tract_nnef_model_for_path
Parse and load an NNEF model as a tract TypedModel.
tract_nnef_transform_model
tract_nnef_write_model_to_dir
Dump a TypedModel as a NNEF directory.
tract_nnef_write_model_to_tar
Dump a TypedModel as a NNEF tar file.
tract_nnef_write_model_to_tar_gz
Dump a TypedModel as a NNEF .tar.gz file.
tract_onnx_create
Creates an instance of an ONNX framework and parser that can be used to load models.
tract_onnx_destroy
Destroy the NNEF parser. It is safe to detroy the NNEF parser once the model had been loaded.
tract_onnx_model_for_path
Parse and load an ONNX model as a tract InferenceModel.
tract_runnable_input_count
Query a Runnable input counts.
tract_runnable_output_count
Query an Runnable output counts.
tract_runnable_release
tract_runnable_run
Convenience function to run a stateless model.
tract_runnable_spawn_state
Spawn a session state from a runnable model.
tract_state_destroy
tract_state_get_states
Get Stateful Ops’s current states.
tract_state_get_states_facts
Get Stateful Ops’s state facts
tract_state_initializable_states_count
Get number of initializable stateful op
tract_state_input_count
Query a State input counts.
tract_state_output_count
Query an State output counts.
tract_state_run
Run a turn on a model state
tract_state_set_states
Initialize Stateful Ops with specified values
tract_value_as_bytes
Inspect part of a value. Except value, all argument pointers can be null if only some specific bits are required.
tract_value_destroy
Destroy a value.
tract_value_from_bytes
Create a TractValue (aka tensor) from caller data and metadata.
tract_version
Returns a pointer to a static buffer containing a null-terminated version string.
unsetenv
valloc
wcstombs
wctomb

Type Aliases§

DatumType
TRACT_RESULT
Used as a return type of functions that can encounter errors. If the function encountered an error, you can retrieve it using the tract_get_last_error function
_Float32
_Float64
_Float32x
_Float64x
__blkcnt64_t
__blkcnt_t
__blksize_t
__builtin_va_list
__caddr_t
__clock_t
__clockid_t
__compar_fn_t
__daddr_t
__dev_t
__fd_mask
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__gnuc_va_list
__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
__pthread_list_t
__pthread_slist_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__thrd_t
__time_t
__timer_t
__tss_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
blkcnt_t
blksize_t
caddr_t
clock_t
clockid_t
daddr_t
dev_t
fd_mask
fsblkcnt_t
fsfilcnt_t
fsid_t
gid_t
id_t
ino_t
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
key_t
loff_t
mode_t
nlink_t
off_t
pid_t
pthread_key_t
pthread_once_t
pthread_spinlock_t
pthread_t
quad_t
register_t
sigset_t
suseconds_t
time_t
timer_t
u_char
u_int
u_int8_t
u_int16_t
u_int32_t
u_int64_t
u_long
u_quad_t
u_short
uid_t
uint
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
ulong
ushort
va_list
wchar_t

Unions§

__atomic_wide_counter
pthread_attr_t
pthread_barrier_t
pthread_barrierattr_t
pthread_cond_t
pthread_condattr_t
pthread_mutex_t
pthread_mutexattr_t
pthread_rwlock_t
pthread_rwlockattr_t