Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

xx bytes lost due to alignment. To avoid this loss, please make sure the tensor_arena is 16 bytes aligned

Open
#21 1 comment 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from arduino/ArduinoTensorFlowLiteTutorials

All issues in arduino/ArduinoTensorFlowLiteTutorials

Similar issues

More Embedded & IoT issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.