Caffe2 - C++ API
A deep learning, cross platform ML framework
pthreadpool_impl.h
1 #ifndef CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
2 #define CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
3 
4 #include "ThreadPoolCommon.h"
5 
6 
7 namespace caffe2 {
8 
9 class ThreadPool;
10 
11 } // namespace caffe2
12 
13 extern "C" {
14 
15 // Wrapper for the caffe2 threadpool for the usage of NNPACK
16 struct pthreadpool {
17  pthreadpool(caffe2::ThreadPool* pool) : pool_(pool) {}
18  caffe2::ThreadPool* pool_;
19 };
20 
21 } // extern "C"
22 
23 #endif // CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...