-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BugFix][VTA] Fix vta_conv2d crash issue after change vta_config.json #3213
Conversation
@tqchen @tmoreau89 could you help to review this patch? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a warning here is a good idea here so that we don't get misleading errors.
… configuration. Issue: Once change LOG_BLOCK_IN or LOG_BLOCK_OUT into > 4 value, when run vta “Simple Matrix Multiply” or load vta, vta would crash at vta_conv2d.py. Analysis: This issue caused by resnet18 logic of vta_conv2d.py which have in_filter minmum size that is 16. > 4 value would cause such in_filter check failed then make xfer_size be empty and find_schedules function return a empty list finally cause crash. Solution: add the empty list check.
@tmoreau89 , the change request already addressed, please kindly let me know if you have any other comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks looks good.
… configuration. (apache#3213) Issue: Once change LOG_BLOCK_IN or LOG_BLOCK_OUT into > 4 value, when run vta “Simple Matrix Multiply” or load vta, vta would crash at vta_conv2d.py. Analysis: This issue caused by resnet18 logic of vta_conv2d.py which have in_filter minmum size that is 16. > 4 value would cause such in_filter check failed then make xfer_size be empty and find_schedules function return a empty list finally cause crash. Solution: add the empty list check.
… configuration. (apache#3213) Issue: Once change LOG_BLOCK_IN or LOG_BLOCK_OUT into > 4 value, when run vta “Simple Matrix Multiply” or load vta, vta would crash at vta_conv2d.py. Analysis: This issue caused by resnet18 logic of vta_conv2d.py which have in_filter minmum size that is 16. > 4 value would cause such in_filter check failed then make xfer_size be empty and find_schedules function return a empty list finally cause crash. Solution: add the empty list check.
… configuration. (apache#3213) Issue: Once change LOG_BLOCK_IN or LOG_BLOCK_OUT into > 4 value, when run vta “Simple Matrix Multiply” or load vta, vta would crash at vta_conv2d.py. Analysis: This issue caused by resnet18 logic of vta_conv2d.py which have in_filter minmum size that is 16. > 4 value would cause such in_filter check failed then make xfer_size be empty and find_schedules function return a empty list finally cause crash. Solution: add the empty list check.
configuration.
Issue:
Once change LOG_BLOCK_IN or LOG_BLOCK_OUT into > 4 value, when run vta
“Simple Matrix Multiply” or load vta, vta would crash at vta_conv2d.py.
Analysis:
This issue caused by resnet18 logic of vta_conv2d.py which have
in_filter minmum size that is 16. > 4 value would cause such in_filter
check failed then make xfer_size be empty and find_schedules function
return a empty list finally cause crash.
Solution:
add the empty list check.
Thanks for contributing to TVM! Please refer to guideline https://docs.tvm.ai/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers.