tensorflow/compiler/aot/test.cc
// Simple benchmark that repeatedly runs the generated function.
Simple benchmark that repeatedly runs the generated function.
Simple benchmark that repeatedly runs the generated function .
void BM_NAME(benchmark::State& state) {
  Eigen::ThreadPool pool(port::MaxParallelism());
  Eigen::ThreadPoolDevice device(&pool, pool.NumThreads());
  CPP_CLASS computation;
  computation.set_thread_pool(&device);
  zero_buffers(&computation);
  for (auto s : state) {
    computation.Run();
  }
}
void BM_NAME ( benchmark :: State & state ) { Eigen :: ThreadPool pool ( port :: MaxParallelism ( ) ) ; Eigen :: ThreadPoolDevice device ( & pool , pool . NumThreads ( ) ) ; CPP_CLASS computation ; computation . set_thread_pool ( & device ) ; zero_buffers ( & computation ) ; for ( auto s : state ) { computation . Run ( ) ; } }
Simple benchmark that repeatedly runs the generated function.
Simple benchmark that repeatedly runs the generated function .