Function Snpe_SNPE_GetInputDimensionsForNetwork¶
Defined in File SNPE.h
Function Documentation¶
-
Snpe_TensorShape_Handle_t Snpe_SNPE_GetInputDimensionsForNetwork(Snpe_SNPE_Handle_t snpeHandle, const char *networkName, const char *name)¶
Returns the dimensions of the input 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.
See also
See also
- Parameters
snpeHandle – [in] Handle to access the SNPE object
networkName – [in] Network name.
name – [in] input name.
- Returns
a TensorShape that maintains dimensions, matching the tensor dimensions for 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.