Check failed: IsAligned()

I am developping a pluggable device, lately I got into this issue when running some models:

2022-10-11 14:37:02.278907: F ./tensorflow/core/framework/tensor.h:891] Check failed: IsAligned() ptr = 0x18d75f50

I am failing to see whether this is a tensorflow issue or something done wrong with the plugin memory allocator.
I tried to make the allocator return addresses that are multiple of 64 to make sure it would pass the test, but it still doesn’t, which leads me to think that it is more related to tensorflow rather than my allocator.

Any idea why this is happening and how I could prevent it?

Anyone?

I’ve seen this page from Eigen stating that C++17 should fix everything, however I am using TF 2.10 which defaults to C++17.