Function Snpe_SNPE_GetInputTensorNamesForNetwork

Function Documentation

Snpe_StringList_Handle_t Snpe_SNPE_GetInputTensorNamesForNetwork(Snpe_SNPE_Handle_t snpeHandle, const char *networkName)

Gets the names of input tensors to the network.

To support multiple input scenarios, where multiple tensors are passed through execute() in a TensorMap, each tensor needs to be uniquely named. The names of tensors can be retrieved through this function.

In the case of a single input, one name will be returned.

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

  • networkName[in] Network name.

Returns

A StringList of input tensor names.

Note

The networkName is specified in snpe-dlc-info and defaults to the name of the first graph in the DLC.