#include <ML_Model.h>
|
| ML_Model () |
|
| ~ML_Model () |
|
bool | initializeModel (const UT_StringRef &model_filepath, ML_ExecutionProvider provider, UT_WorkBuffer &errors, UT_WorkBuffer &warnings, UT_WorkBuffer &messages) |
|
bool | run (const UT_Array< UT_Array< float >> &inputs, const UT_Array< Shape > &input_shapes, UT_Array< UT_Array< float >> &outputs, const UT_Array< Shape > &output_shapes, UT_WorkBuffer &error_message) |
|
void | getNames (UT_StringArray &input_names, UT_StringArray &output_names) const |
|
void | getShapes (UT_Array< Shape > &input_shapes, UT_Array< Shape > &output_shapes) const |
|
Definition at line 22 of file ML_Model.h.
Returns a human-readable name for an exection provider.
Initializer for the ML_Model class
- Parameters
-
model_filepath | contains the path to the ONNX model |
provider | determines which execution provider to use |
errors | is meant to hold any error strings that may be generated from an error occurring during initialization |
static bool ML_Model::mat3ToShape |
( |
Shape & |
tensor_shape, |
|
|
const UT_Matrix3D & |
shape_vector |
|
) |
| |
|
static |
This is a function for acquiring the shape of a tensor from the parameters.
- Parameters
-
tensor_shape | the array to fill with the shape. |
Parses the output data for nodes
- Parameters
-
maxtuplesize | -1 for unlimited |
Returns a cached list of support execution providers for the current system configuration
Returns true if the specified provider is supported by the current platform and system configuration
static exint ML_Model::tensorElementsSize |
( |
const UT_Array< exint > & |
tensor_dimensions, |
|
|
bool & |
has_dynamic_axes |
|
) |
| |
|
static |
Gets the product of all non-dynamic axes of a tensor shape. Places a bool in a variable to determine if dynamic axes were found Any dimensions being zero will return 0
- Returns
- 1 if all axes are dynamic
The documentation for this class was generated from the following file: