MCPcopy Create free account
hub / github.com/Xilinx/CHaiDNN / xiInputRead

Function xiInputRead

software/interface/xi_readwrite_util.cpp:750–766  ·  view source on GitHub ↗

Input Read

Source from the content-addressed store, hash-verified

748
749//# Input Read
750void 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
769void xiUnpackOutput(std::vector<void *> output, std::vector<void *> output_unpack, kernel_type_e kernelType, int outputSize, int numImg_to_process)

Callers 7

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

Tested by

no test coverage detected