Write a fact as its specification string.
Parse a fact specification string into an Fact.
Frees a string allocated by libtract.
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
.
Destroy a fact.
Write an inference fact as its specification string.
Creates an empty inference fact.
Parse a fact specification string into an InferenceFact.
Analyse an InferencedModel in-place.
Destroy an InferenceModel.
Query an InferenceModel input counts.
Query the name of a model input.
Convenience function to obtain an optimized TypedModel from an InferenceModel.
Transform a fully analysed InferenceModel to a TypedModel.
Query an InferenceModel output counts.
Query an output fact for an InferenceModel.
Query the name of a model output.
Set an input fact of an InferenceModel.
Set an output fact of an InferenceModel.
Change the model outputs nodes (by name).
Give value one or more symbols used in the model.
Declutter a TypedModel in-place.
Destroy a TypedModel.
Query an InferenceModel input counts.
Query the input fact of a model.
Query the name of a model input.
Convert a TypedModel into a TypedRunnableModel.
Optimize a TypedModel in-place.
Query an InferenceModel output counts.
Query the output fact of a model.
Query the name of a model output.
Perform a profile of the model using the provided inputs.
Query a property value in a model.
Query the number of properties in a model.
Query the properties names of a model.
Pulsify the model
Change the model outputs nodes (by name).
Apply a transform to the model.
Creates an instance of an NNEF framework and parser that can be used to load and dump NNEF models.
Destroy the NNEF parser. It is safe to detroy the NNEF parser once the model had been loaded.
Parse and load an NNEF model as a tract TypedModel.
Dump a TypedModel as a NNEF directory.
Dump a TypedModel as a NNEF tar file.
Dump a TypedModel as a NNEF .tar.gz file.
Creates an instance of an ONNX framework and parser that can be used to load models.
Destroy the NNEF parser. It is safe to detroy the NNEF parser once the model had been loaded.
Parse and load an ONNX model as a tract InferenceModel.
Query a Runnable input counts.
Query an Runnable output counts.
Convenience function to run a stateless model.
Spawn a session state from a runnable model.
Query a State input counts.
Query an State output counts.
Run a turn on a model state
Inspect part of a value. Except value
, all argument pointers can be null if only some specific bits
are required.
Destroy a value.
Create a TractValue (aka tensor) from caller data and metadata.
Returns a pointer to a static buffer containing a null-terminated version string.