tensorflow/lite/delegates/hexagon/builders/tests/batch_seq_config_test.cc
// Returns a randomly generated data of size 'num_elements'.
Returns a randomly generated data of size 'num_elements'.
Returns a randomly generated data of size ' num_elements ' .
std::vector<uint8_t> GetData(int num_elements) {
  std::vector<uint8_t> result(num_elements);
  std::random_device random_engine;
  std::uniform_int_distribution<uint32_t> distribution(0, 254);
  std::generate_n(result.data(), num_elements, [&]() {
    return static_cast<uint8_t>(distribution(random_engine));
  });
  return result;
}
std :: vector < uint8_t > GetData ( int num_elements ) { std :: vector < uint8_t > result ( num_elements ) ; std :: random_device random_engine ; std :: uniform_int_distribution < uint32_t > distribution ( 0 , 254 ) ; std :: generate_n ( result . data ( ) , num_elements , [ & ] ( ) { return static_cast < uint8_t > ( distribution ( random_engine ) ) ; } ) ; return result ; }
Returns a randomly generated data of size 'num_elements'.
Returns a randomly generated data of size ' num_elements ' .