- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for DumpStatsToStdout (0.27 sec)
-
tensorflow/compiler/aot/benchmark.h
int64_t total_us; // Total time in us. Stats() : total_us(0) { per_iter_us.reserve(5000); } }; // DumpStatsToStdout printfs to stdout stats in a multi-line human-friendly // form. void DumpStatsToStdout(const Stats& stats); // BenchmarkFn is the signature of the function generated by tfcompile. typedef std::function<void()> BenchmarkFn;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 2.5K bytes - Viewed (0) -
tensorflow/compiler/aot/benchmark_main.template
CPP_CLASS computation; computation.set_thread_pool(&device); benchmark::Options options; benchmark::Stats stats; benchmark::Benchmark(options, [&] { computation.Run(); }, &stats); benchmark::DumpStatsToStdout(stats); return 0; } } // namespace tfcompile } // namespace tensorflow int main(int argc, char** argv) { return tensorflow::tfcompile::Main(argc, argv);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 19 20:05:05 UTC 2023 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/aot/benchmark.cc
static uint64 NowMicros() { struct timeval tv; gettimeofday(&tv, nullptr); return static_cast<uint64>(tv.tv_sec) * 1000000 + tv.tv_usec; } void DumpStatsToStdout(const Stats& stats) { // Compute stats. std::vector<int64_t> sorted_us(stats.per_iter_us); std::sort(sorted_us.begin(), sorted_us.end()); const size_t count_us = sorted_us.size(); double sum_us = 0;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 12 19:45:29 UTC 2023 - 4.5K bytes - Viewed (0)