Structs§
- Tract
Fact - Tract
Inference Fact - Tract
Inference Model - Tract
Model - Tract
Nnef - Tract
Onnx - Tract
Runnable - Tract
State - Tract
Value
Enums§
- 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_errorfunction
Functions§
- 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_RESULTand it returnedTRACT_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.