You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "ashutosh-arm (via GitHub)" <gi...@apache.org> on 2023/12/29 14:02:17 UTC
[I] [Bug][CMSIS-NN] Raise error when buffer sizes don't match [tvm]
ashutosh-arm opened a new issue, #16300:
URL: https://github.com/apache/tvm/issues/16300
### Context
Buffer sizes are generated at compile time while generating code for the CMSIS-NN backend. However, running this code requires CMSIS-NN sources at runtime. It is possible that the buffer sizes desired by runtime are different from the one produced at compilation time.
### Solution
Emit functions in TIR2Runtime can be updated to introduce error checks around context buffer sizes. Buffer sizes obtained during codegen can be compared against the sizes obtained at runtime using CMSIS-NN buffer size APIs.
https://github.com/apache/tvm/blob/main/src/relay/backend/contrib/cmsisnn/tir_to_runtime.cc
### Environment
TVM 0.14.0
### Steps to reproduce
Any of the tests from following tests can be used. https://github.com/apache/tvm/blob/506eff23b034cfd88dda44cf5040ab8b40683155/tests/python/contrib/test_cmsisnn/test_conv2d.py#L337
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][CMSIS-NN] Raise error when buffer sizes don't match [tvm]
Posted by "ashutosh-arm (via GitHub)" <gi...@apache.org>.
ashutosh-arm commented on issue #16300:
URL: https://github.com/apache/tvm/issues/16300#issuecomment-1872113674
A related issue is
https://github.com/apache/tvm/issues/16298
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org