1 #ifndef CAFFE2_CORE_NET_ASYNC_SCHEDULING_H_ 2 #define CAFFE2_CORE_NET_ASYNC_SCHEDULING_H_ 4 #include "caffe2/core/net_async_base.h" 11 const std::shared_ptr<const NetDef>& net_def,
18 bool RunAsync()
override;
20 void pollAndSchedule(
int task_id);
21 void schedule(
int task_id,
bool run_inline =
false) noexcept;
22 void reset()
override;
23 virtual void finishRun();
24 void parentCallback(
int parent_id);
25 bool isInlineTask(
int parent_id,
int child_id)
const;
27 std::mutex running_mutex_;
28 std::condition_variable running_cv_;
29 std::atomic<bool> running_;
31 std::atomic<int> processed_tasks_num_;
38 #endif // CAFFE2_CORE_NET_ASYNC_SCHEDULING_H_
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...