Information about the ONNX model’s inputs and outputs – script 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