examples/cpp/tf_zendnn_client.cpp
std::vector<int> postprocess(proteus::InferenceResponseOutput& output, int k) {
  auto* data = static_cast<std::vector<float>*>(output.getData());
  auto size = output.getSize();

  std::vector<double> softmax;
  softmax.resize(size);

  calc_softmax(data->data(), size, softmax.data());
  return get_top_k(softmax.data(), size, k);
}
/**
 * @brief Perform postprocessing of the data
 *
 * @param output output from Proteus
 * @param k number of top elements to return
 * @return std::vector<int>
 */
@brief Perform postprocessing of the data
@param output output from Proteus
@param k number of top elements to return
@return std::vector
@brief Perform postprocessing of the data @param output output from Proteus @param k number of top elements to return @return std :: vector
std::vector<int> postprocess(proteus::InferenceResponseOutput& output, int k) {
  auto* data = static_cast<std::vector<float>*>(output.getData());
  auto size = output.getSize();
  std::vector<double> softmax;
  softmax.resize(size);
  calc_softmax(data->data(), size, softmax.data());
  return get_top_k(softmax.data(), size, k);
}
std :: vector < int > postprocess ( proteus :: InferenceResponseOutput & output , int k ) { auto * data = static_cast < std :: vector < float > * > ( output . getData ( ) ) ; auto size = output . getSize ( ) ; std :: vector < double > softmax ; softmax . resize ( size ) ; calc_softmax ( data -> data ( ) , size , softmax . data ( ) ) ; return get_top_k ( softmax . data ( ) , size , k ) ; }
@brief Perform postprocessing of the data
 @param output output from Proteus
 @param k number of top elements to return
 @return std::vector<int>
@brief Perform postprocessing of the data @param output output from Proteus @param k number of top elements to return @return std :: vector<int >