- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for kCompileThreshold (0.18 sec)
-
tensorflow/compiler/jit/device_compilation_profiler_test.cc
NameAttrList function; function.set_name("TestFunc"); const int64_t kCompileThreshold = 10; const int64_t kMinExecutionsPerCompile = 50; // Register compilation enough times (without registering executions enough // times) so that the function is marked megamorphic. for (int i = 0; i < kCompileThreshold + 1; ++i) { EXPECT_TRUE(profiler->RegisterCompilation(function, 1, false).ok()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Dec 22 21:06:33 UTC 2022 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compilation_profiler.cc
bool ShouldBeMegamorphic(int64_t compile_count, int64_t execution_count) { const int64_t kCompileThreshold = 10; const int64_t kMinExecutionsPerCompile = 50; // This heuristic is trying to capture the following property: have we sunk a // certain minimum amount of compile time into the cluster that didn't quite // "pay off"? return compile_count > kCompileThreshold && execution_count < kMinExecutionsPerCompile * compile_count; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 06:59:07 UTC 2024 - 8.5K bytes - Viewed (0)