xx bytes lost due to alignment. To avoid this loss, please make sure the tensor_arena is 16 bytes aligned
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- arduino, jupyter-notebook
- Domain
- embedded-iot, machine-learning
Research direction
Start with the Google Colab ML notebook command that generates model.h and the Arduino sketch that reports the tensor_arena alignment warning. Reproduce the gesture-recognition build and serial output, then verify that the generated model header is aligned correctly and gestures are classified without the warning.
Written by the indexing model from the issue text.
Description
I get this error message I get when I basically replicate the gesture recognition tutorial in Arduino ML guide.
More importantly, though the arduino sketch builds, the model doesn't appear to be working, since the serial output doesn't report any gestures.
The workaround that worked for me was to change the header in the model.h encoding in the Google Colab ML notebook:
Original: !echo "const unsigned char model[] = {"
What worked for me: !echo "alignas(8)const unsigned char model[] = {"
The addition of alignas(8) fixed the issue in that the arduino sketch build is now working, and I am able to classify gestures.
- Dominant language
- Jupyter Notebook
- Stars
- 269
- Forks
- 122
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from arduino/ArduinoTensorFlowLiteTutorials
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
arduino/ArduinoTensorFlowLiteTutorials#37 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
arduino/ArduinoTensorFlowLiteTutorials#36 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
arduino/ArduinoTensorFlowLiteTutorials#35 · 4 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
arduino/ArduinoTensorFlowLiteTutorials#34 · 5 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
All issues in arduino/ArduinoTensorFlowLiteTutorials
Similar issues
-
approved checks-failed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
zwave-js/firmware-updates#390 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
espressif/esp-aws-iot#261 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zephyrproject-rtos/zephyr#120011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
CVA6 cache increase Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100