Function arm_cmsis_nn_shape_product

Function Documentation

static size_t arm_cmsis_nn_shape_product(const int32_t *shape, int32_t length)

Calculate the product of all dimensions in a shape array.

Parameters:
  • shape[in] Pointer to array containing shape dimensions

  • length[in] Number of dimensions in the shape array

Returns:

Product of all dimensions