MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/compiler/aot/test.cc:61–70  ·  view source on GitHub ↗

Trivial test that runs the generated function to ensure it doesn't crash.

Source from the content-addressed store, hash-verified

59
60// Trivial test that runs the generated function to ensure it doesn't crash.
61TEST(TEST_NAME, NoCrash) {
62 Eigen::ThreadPool pool(port::MaxParallelism());
63 Eigen::ThreadPoolDevice device(&pool, pool.NumThreads());
64
65 CPP_CLASS computation;
66 computation.set_thread_pool(&device);
67 zero_buffers(&computation);
68
69 EXPECT_TRUE(computation.Run());
70}
71
72// Simple benchmark that repeatedly runs the generated function.
73void BM_NAME(int iters) {

Callers

nothing calls this directly

Calls 5

zero_buffersFunction · 0.85
set_thread_poolMethod · 0.80
MaxParallelismFunction · 0.50
NumThreadsMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected