Caffe2 - C++ API
A deep learning, cross platform ML framework
plan_executor.h
1 #pragma once
2 
3 #include <functional>
4 #ifndef CAFFE2_MOBILE
5 #include "caffe2/core/stats.h"
6 #endif // CAFFE2_MOBILE
7 
8 namespace caffe2 {
9 
10 class Workspace;
11 class PlanDef;
12 
13 typedef std::function<bool(int)> ShouldContinue;
14 
15 bool RunPlanOnWorkspace(Workspace* ws, const PlanDef& plan, ShouldContinue);
16 
17 #ifndef CAFFE2_MOBILE
19  CAFFE_STAT_CTOR(PlanExecutionTime);
20  CAFFE_EXPORTED_STAT(plan_execution_time_ns);
21 };
22 #endif // CAFFE2_MOBILE
23 }
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...