Navigation
API > API/Runtime > API/Runtime/NNE > API/Runtime/NNE/IModelInstanceRunSync
Description
Evaluate the model synchronously.
SetInputTensorShapes must be called prior to this call. This function will block the calling thread until the inference is complete. The caller owns the memory inside the bindings and must make sure that they are big enough. Clients can call this function from an async task but must make sure the memory remains valid throughout the evaluation.
| Name | RunSync |
| Type | function |
| Header File | /Engine/Source/Runtime/NNE/Public/NNERuntimeRunSync.h |
| Include Path | #include "NNERuntimeRunSync.h" |
ERunSyncStatus RunSync
(
TConstArrayView< FTensorBindingCPU > InInputTensors,
TConstArrayView< FTensorBindingCPU > InOutputTensors
)
Status indicating success or failure.
Parameters
| Name | Remarks |
|---|---|
| InInputTensors | An array containing tensor bindings for each input tensor with caller owned memory containing the input data. |
| InOutputTensors | An array containing tensor bindings for each output tensor with caller owned memory big enough to contain the results on success. |