3 #include "caffe2/core/common.h" 4 #include "caffe2/core/net.h" 5 #include "caffe2/core/observer.h" 6 #include "caffe2/core/timer.h" 7 #include "observers/macros.h" 9 #include <unordered_map> 24 void Start()
override;
27 caffe2::string getObserverName(
const OperatorBase* op,
int idx)
const;
36 unsigned int numRuns_;
37 std::unordered_map<const OperatorBase*, const ObserverBase<OperatorBase>*>
48 double getMilliseconds()
const;
49 std::vector<TensorShape> getTensorShapes()
const;
52 void Start()
override;
64 std::vector<TensorShape> tensor_shapes_;
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
A simple timer object for measuring time.