Caffe2 - C++ API
A deep learning, cross platform ML framework
profiler.h
1 #pragma once
2 #include "caffe2/core/logging.h"
3 #include "caffe2/core/timer.h"
4 
5 namespace caffe2 {
6 namespace emulator {
7 
8 /*
9  * An interface to profile the metrics of a @runnable.
10  * It should return execution walltime in milliseconds.
11  */
12 class Profiler {
13  public:
14  virtual float profile(std::function<void()> runnable) = 0;
15 
16  virtual ~Profiler() noexcept {}
17 };
18 
19 } // namespace emulator
20 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13