tensorflow/compiler/aot/test.cc
// Trivial test that runs the generated function to ensure it doesn't crash.
Trivial test that runs the generated function to ensure it doesn't crash.
Trivial test that runs the generated function to ensure it doesn ' t crash .
TEST(TEST_NAME, NoCrash) {
  Eigen::ThreadPool pool(port::MaxParallelism());
  Eigen::ThreadPoolDevice device(&pool, pool.NumThreads());
  CPP_CLASS computation;
  computation.set_thread_pool(&device);
  zero_buffers(&computation);
  EXPECT_TRUE(computation.Run());
}
TEST ( TEST_NAME , NoCrash ) { Eigen :: ThreadPool pool ( port :: MaxParallelism ( ) ) ; Eigen :: ThreadPoolDevice device ( & pool , pool . NumThreads ( ) ) ; CPP_CLASS computation ; computation . set_thread_pool ( & device ) ; zero_buffers ( & computation ) ; EXPECT_TRUE ( computation . Run ( ) ) ; }
Trivial test that runs the generated function to ensure it doesn't crash.
Trivial test that runs the generated function to ensure it doesn ' t crash .