Xilinx / CHaiDNN

HLS based Deep Neural Network Accelerator Library for Xilinx Ultrascale+ MPSoCs
Other
323 stars 152 forks source link

Cannot enable layerwise output write #160

Open WenyeLiu opened 5 years ago

WenyeLiu commented 5 years ago

Follow the instruction to dump the outputs of hardware accelerated layers, I set the

define LAYERWISE_OUTPUT_WRITE 1 in software/include/hw_settings.h.

When I compile the software, it reports error as ../checkers/checkers_utils.hpp: In function ‘int cpCheck(xChangeLayer, FILE&, FILE&)’: ../checkers/checkers_utils.hpp:122:2: error: ‘SoftwareUnpack’ was not declared in this scope SoftwareUnpack(hls_out1, hls_out2, height, width, indepth, out_fbits, sf, th, quant, ^~~~~~ In file included from ../checkers/checkers.cpp:18:0: ../checkers/../include/hw_settings.h:143:22: error: expected primary-expression before ‘signed’

define IO_DATA_TYPE signed char

                  ^

../checkers/checkers_utils.hpp:122:17: note: in expansion of macro ‘IO_DATA_TYPE’ SoftwareUnpack(hls_out1, hls_out2, height, width, indepth, out_fbits, sf, th, quant,

It seems the SoftwareUnpack is not declared but I cannot find where is the definition or implementation of this method.

btwbtw01 commented 3 years ago

I have the same issue. Can someone help me solve the problem?