Default

Description

Create a Session. Type : polymorphic.

 

Input parameters

 

Β Execution Device : enum, selects the hardware device on which the model will run.
model_path : path, is the path to the model file.

Sessions Parameters : cluster

intra_op_num_threadsΒ : integer, number of threads used within each operator to parallelize computations. If the value is 0, ONNX Runtime automatically uses the number of physical CPU cores.
inter_op_num_threadsΒ : integer, number of threads used between operators, to execute multiple graph nodes in parallel. If set to 0, this parameter is ignored when execution_mode is ORT_SEQUENTIAL. In ORT_PARALLEL mode, 0 means ORT automatically selects a suitable number of threads (usually equal to the number of cores).
execution_modeΒ : enum, controls whether the graph executes nodes one after another or allows parallel execution when possible.ORT_SEQUENTIAL runs nodes in order, ORT_PARALLEL runs them concurrently.
deterministic_compute : boolean,
forces deterministic execution, meaning results will always be identical for the same inputs.
graph_optimization_levelΒ : enum, defines how much ONNX Runtime optimizes the computation graph before running the model.
optimized_model_file_pathΒ : path,
file path to save the optimized model after graph analysis.
Β profiling output dir :Β path,Β specifies the directory where ONNX Runtime will save profiling output files. If you set this parameter to a valid (non-empty) path, profiling is automatically enabled. However, if the path is empty, profiling will not be activated.

Output parameters

 

Β Inference out : object, inference session.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Accelerator library to run it).

Table of Contents