Function Snpe_SNPE_GetInputDimensionsOfFirstTensor

Function Documentation

Snpe_TensorShape_Handle_t Snpe_SNPE_GetInputDimensionsOfFirstTensor(Snpe_SNPE_Handle_t snpeHandle)

Returns the dimensions of the first input’s data to the model in the form of TensorShape. The dimensions in TensorShape corresponds to what the tensor dimensions would need to be for an input tensor to the model.

Parameters

snpeHandle[in] Handle to access the SNPE object

Returns

a TensorShape that maintains dimensions, matching the tensor dimensions for first input to the model, where the last entry is the fastest varying dimension, etc.

Note

Note that this function only makes sense for networks that have a fixed input size. For networks in which the input size varies with each call of Execute(), this function should not be used.