Caffe2 - C++ API
A deep learning, cross platform ML framework
init_qnnpack.cc
1 #include <mutex>
2 
3 #include <qnnpack.h>
4 
5 #include "caffe2/core/logging.h"
6 
7 namespace caffe2 {
8 
9 void initQNNPACK() {
10  static std::once_flag once;
11  static enum qnnp_status qnnpackStatus = qnnp_status_uninitialized;
12  std::call_once(once, []() { qnnpackStatus = qnnp_initialize(); });
13  CAFFE_ENFORCE(
14  qnnpackStatus == qnnp_status_success, "failed to initialize QNNPACK");
15 }
16 
17 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13