|
int | run_example (int argc, char **argv, std::unique_ptr< Example > example) |
| Run an example and handle the potential exceptions it throws. More...
|
|
template<typename T > |
int | run_example (int argc, char **argv) |
|
void | draw_detection_rectangle (arm_compute::ITensor *tensor, const arm_compute::DetectionWindow &rect, uint8_t r, uint8_t g, uint8_t b) |
| Draw a RGB rectangular window for the detected object. More...
|
|
std::tuple< unsigned int, unsigned int, int > | parse_ppm_header (std::ifstream &fs) |
| Parse the ppm header from an input file stream. More...
|
|
std::tuple< std::vector< unsigned long >, bool, std::string > | parse_npy_header (std::ifstream &fs) |
| Parse the npy header from an input file stream. More...
|
|
std::string | get_typestring (DataType data_type) |
| Obtain numpy type string from DataType. More...
|
|
template<typename T > |
void | map (T &tensor, bool blocking) |
| Maps a tensor if needed. More...
|
|
template<typename T > |
void | unmap (T &tensor) |
| Unmaps a tensor if needed. More...
|
|
template<typename T > |
void | save_to_ppm (T &tensor, const std::string &ppm_filename) |
| Template helper function to save a tensor image to a PPM file. More...
|
|
template<typename T > |
void | save_to_npy (T &tensor, const std::string &npy_filename, bool fortran_order) |
| Template helper function to save a tensor image to a NPY file. More...
|
|
template<typename T > |
void | load_trained_data (T &tensor, const std::string &filename) |
| Load the tensor with pre-trained data from a binary file. More...
|
|
template<typename T > |
void | fill_random_tensor (T &tensor, float lower_bound, float upper_bound) |
|
template<typename T > |
void | init_sgemm_output (T &dst, T &src0, T &src1, arm_compute::DataType dt) |
|
uint64_t | get_mem_free_from_meminfo () |
| This function returns the amount of memory free reading from /proc/meminfo. More...
|
|
template<typename T > |
int | compare_tensor (ITensor &tensor1, ITensor &tensor2) |
| Compare to tensor. More...
|
|