Closed yn224 closed 3 years ago
@yn224 this should have been solved with the latest commit to the main branch. can you have a try?
@yn224 this should have been solved with the latest commit to the main branch. can you have a try?
It seems like the recent commit does not solve the issue, unfortunately. I noticed that the problem was that the buffer for test_image
is not getting generated. Would you be able to check that the code modification that I addressed above is valid and that this error should not happen?
Sure. I will double-check and let you assp.
@yn224 you are right. the buffer_test_image is missing somehow. I am creating a new PR to fix this issue.
A quick workaround would be declaring test_image as a tensor of size (1,).
This should have been fixed in https://github.com/cornell-zhang/heterocl/pull/418. Please reopen the issue if the error still exists.
Problem Statement
When I tried simulating KNN algorithm for digit recognition example, I noticed that the host code that gets generated produces some errors.
Error Layout
Modified code (starting from line 405):
Output:
Solution
In order to fix this issue, the manual debugging led to the two solution that would fix this problem: