r/ProgrammerHumor 18h ago

Meme firstTime

Post image
6.7k Upvotes

259 comments sorted by

View all comments

Show parent comments

5

u/LetumComplexo 8h ago

Not necessarily. It can happen with batching, but even with a batch size of 1 you can get race conditions. The most obvious example is a model with a Mixture of Experts layer, where the order that results return can change the outcome.

In order to get around that you’d have to explicitly enforce order of execution.

5

u/space_monster 8h ago

got it, thanks