mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
24 lines
424 B
C++
24 lines
424 B
C++
#ifndef CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
|
|
#define CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
|
|
|
|
#include "ThreadPoolCommon.h"
|
|
|
|
|
|
namespace caffe2 {
|
|
|
|
class ThreadPool;
|
|
|
|
} // namespace caffe2
|
|
|
|
extern "C" {
|
|
|
|
// Wrapper for the caffe2 threadpool for the usage of NNPACK
|
|
struct pthreadpool {
|
|
pthreadpool(caffe2::ThreadPool* pool) : pool_(pool) {}
|
|
caffe2::ThreadPool* pool_;
|
|
};
|
|
|
|
} // extern "C"
|
|
|
|
#endif // CAFFE2_UTILS_PTHREADPOOL_IMPL_H_
|