ONE - On-device Neural Engine
|
Go to the source code of this file.
Functions | |
uint64_t | num_elems (const nnfw_tensorinfo *ti) |
Get the total number of elements in nnfw_tensorinfo->dims. | |
int | main (const int argc, char **argv) |
int main | ( | const int | argc, |
char ** | argv | ||
) |
Definition at line 31 of file minimal.cc.
References nnfw_tensorinfo::dtype, nnfw_close_session(), nnfw_create_session(), nnfw_input_tensorinfo(), nnfw_load_model_from_file(), nnfw_output_tensorinfo(), nnfw_prepare(), nnfw_run(), nnfw_set_input(), nnfw_set_op_backend(), nnfw_set_output(), and num_elems().
uint64_t num_elems | ( | const nnfw_tensorinfo * | tensor_info | ) |
Get the total number of elements in nnfw_tensorinfo->dims.
This function is called to set the size of the input, output array.
[in] | tensor_info | Tensor info (shape, type, etc) |
Definition at line 21 of file minimal.cc.
References nnfw_tensorinfo::dims, and nnfw_tensorinfo::rank.
Referenced by circle_eval_diff::MAEPrinter::init(), circle_eval_diff::MSEPrinter::init(), circle_eval_diff::MAPEPrinter::init(), circle_eval_diff::TopKMatchPrinter::init(), main(), dalgona::Dalgona::runAnalysisWithRandomInput(), NNFW_SESSION::set_input(), and NNFW_SESSION::set_output().