Skip to content

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

Description

@gmram

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions