1 #include "caffe2/onnx/onnxifi_init.h" 5 #include "caffe2/core/logging.h" 10 onnxifi_library* initOnnxifiLibrary() {
11 static std::once_flag once;
12 static onnxifi_library core{};
13 std::call_once(once, []() {
14 auto ret = onnxifi_load(ONNXIFI_LOADER_FLAG_VERSION_1_0,
nullptr, &core);
16 CAFFE_THROW(
"Cannot load onnxifi lib");
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...