1 #ifndef CAFFE2_SNPE_FFI_H_ 2 #define CAFFE2_SNPE_FFI_H_ 9 std::string& gSNPELocation();
11 const char*
const snpe_ffi_so =
"libsnpe_ffi.so";
19 void* snpe_create(
const uint8_t* container,
size_t size,
const char* input_name);
21 void snpe_destroy(
void* ctx);
23 void snpe_get_input_dims(
void* ctx,
size_t const** dims,
size_t* size);
25 void snpe_run(
void* ctx,
26 const float* inputData,
28 size_t const** outputDims,
31 void snpe_copy_output_to(
void* ctx,
float* outputData);
35 #endif // CAFFE2_SNPE_FFI_H_ A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...