Template Function amdinfer::pre_post::calcSoftmax

Function Documentation

template<typename T>
void amdinfer::pre_post::calcSoftmax(const T *data, size_t size, double *result)

Calculate softmax of the data.

Template Parameters

T – the expected type of the data

Parameters
  • data – pointer to the raw data

  • size – number of elements in the raw data

  • result – pointer to store the computed results