Get info about inputs and outputs of onnx-model – script MetaTrader 5

Get info about inputs and outputs of onnx-model - script for MetaTrader 5
Create model from mnist.onnx with debug logs ONNX: Creating and using per session threadpools since use_per_session_threads_ is true ONNX: Dynamic block base set to 0 ONNX: Initializing session. ONNX: Adding default CPU execution provider. ONNX: Removing initializer ‘Parameter6’. It is no longer used by any node. ONNX: Removing initializer ‘Parameter88’. It is no longer used … Read more

Information about the ONNX model’s inputs and outputs – script MetaTrader 5

Information about the ONNX model's inputs and outputs - script for MetaTrader 5
The ONNX model run function requires the model’s input and output sizes to be defined. The sizes are specified via the OnnxSetInputShape and OnnxSetOutputShape functions, respectively. Not all models have fixed input and output data sizes. In these cases, the script will return -1.    OnnxTypeInfo type_info;    long input_count=OnnxGetInputCount(session_handle);    Print(“model has “,input_count,” input(s)”); … Read more