[CMSIS-NN] Fix typo in EmitPool2D#11702
Conversation
|
@Mousius @ashutosh-arm @manupa-arm |
|
Thanks @PhilippvK for the fix. Could you please check why the existing test does not catch this? If you case is different, then please add a new unit test. |
|
@ashutosh-arm AFAIK there currently exist no test for the If we want to catch that sort of bug in the future, we need to write Tests for the individual A test would probably have failed if |
|
@PhilippvK You are correct there are no direct tests for I get it why the buffer checks pass in this case. Thanks! Since we don't test execution for anything other than Cortex-M55 at the moment, we should probably use this API to pass on the correct cpu arch by preparing PassConfig first 🤔 |
|
@manupa-arm should we merge this and file a follow-on GH issue to investigate? |
|
@ashutosh-arm
While we could run the test for @areusch As the fixed issue breaks CMSISNN BYOC support for models with pooling layers on DSP-only devices I would appreciate getting this merged to |
|
Can we not check with cortex-m55+nomve ? If so it just need to modify the test runner (maybe a new one) to cover this case. Here : tvm/python/tvm/micro/testing/aot_test_utils.py Lines 36 to 47 in e7851ed Then adding passing mcpu value to here (similiar to NPU_VARIANT) : https://github.com/apache/tvm/blob/main/tests/python/relay/aot/corstone300.mk#L41 (Happy to take as a follow up and this is what's needed to be addressed to close the issue -- if we deciding defer that change) |
|
I think this PR can be merged now that we have upcoming support for passing +nomve flag around from test runner: #12132 |
|
@ashutosh-arm, can you approve the PR explicitly ? |
|
Thanks @PhilippvK @ashutosh-arm @areusch ! |
Co-authored-by: Philipp v. K <phvankempen@gmail.com>
Co-authored-by: Philipp v. K <phvankempen@gmail.com>
This bug, caused that no
context_buffers are generated for AvgPool2D function calls breaking the following configuration:flags.dsp=1flags.mvei=0cc @areusch