I've been implementing a few different generative models myself just to try and learn a little more about the space. There is definitely something magical about diffusion models. I mean, you are training a network to predict noise! And you can leverage that to generate coherent images! Remarkable really.
So, I can special case per compiler I care about, or go through a bunch of code (that I didn't write) manually deconstructing a bunch (hundreds) of offsetof uses to make all the compilers happy. Either way, annoying
Specifically, doing offsetof(foo, bar[i].baz[j]) works on *most* compilers I care about - but a few barf on that (not compile-time constant). Ok, so roll your own - but then you get compilers barfing about null dereferences, or complaining about static_asserts (where appropriate)
Former gamedev. Now Vulkan/OGL engineer at NVIDIA. I speak for myself only.
Mastodon server focused on game development and related topics.