- ONNX Support
- Format Conversion
- Automatic data type conversion
- Creating a Model
- Running a model
- Validation in the Strategy Tester
- OnnxCreate
- OnnxCreateFromBuffer
- OnnxRelease
- OnnxRun
- OnnxGetInputCount
- OnnxGetOutputCount
- OnnxGetInputName
- OnnxGetOutputName
- OnnxGetInputTypeInfo
- OnnxGetOutputTypeInfo
- OnnxSetInputShape
- OnnxSetOutputShape
- Data structures
OnnxSetInputShape
Set the shape of a model's input data by index.
bool OnnxSetInputShape(
|
Parameters
onnx_handle
[in] ONNX session object handle created via OnnxCreate or OnnxCreateFromBuffer.
input_index
[in] Index of the input parameter, starting from 0.
shape
[in] Array describing model's input data shape.
Return Value
Returns the name of the input parameter on success; otherwise returns NULL. To get the error code, call the GetLastError function.
Example:
//---- describe the shapes of the model's input and output data
|
See also