Input Read
| 748 | |
| 749 | //# Input Read |
| 750 | void xiInputRead(std::vector<void *> normalizeInput, vector<void *> input, int numImg_to_process, io_layer_info io_layer_info_ptr) |
| 751 | { |
| 752 | |
| 753 | int en_batch_size_one; |
| 754 | |
| 755 | if(numImg_to_process == 2) |
| 756 | en_batch_size_one = 0; |
| 757 | else |
| 758 | en_batch_size_one = 1; |
| 759 | |
| 760 | //# Load input layer params |
| 761 | int inp_height = io_layer_info_ptr.in_height; |
| 762 | int inp_width = io_layer_info_ptr.in_width; |
| 763 | int inp_channel = io_layer_info_ptr.in_channel; |
| 764 | |
| 765 | loadMeanSubtractedDatafromBuffptr(normalizeInput, (IO_DATA_TYPE *)input[0], inp_height, inp_width, inp_channel, en_batch_size_one); |
| 766 | } |
| 767 | |
| 768 | //# Output Write |
| 769 | void xiUnpackOutput(std::vector<void *> output, std::vector<void *> output_unpack, kernel_type_e kernelType, int outputSize, int numImg_to_process) |