Function Snpe_SNPE_ExecuteITensorForNetwork

Function Documentation

Snpe_ErrorCode_t Snpe_SNPE_ExecuteITensorForNetwork(Snpe_SNPE_Handle_t snpeHandle, const char *networkName, Snpe_ITensor_Handle_t inputHandle, Snpe_TensorMap_Handle_t outputHandle)

Processes the input data and returns the output.

Parameters
  • snpeHandle[in] Handle to access the SNPE object

  • networkName[in] Network name.

  • inputHandle[in] A single tensor contains the input data.

  • outputHandle[inout] An empty map of tensors that will contain the output data of potentially multiple layers (the key in the map is the layer name) upon return

Returns

SNPE_SUCCESS upon successful execution

Note

output TensorMap has to be empty. To forward propagate and get results in user-supplied tensors, use Snpe_SNPE_ExecuteUserBuffers.