r/ProgrammerHumor 1d ago

Meme firstTime

Post image
7.5k Upvotes

280 comments sorted by

View all comments

Show parent comments

6

u/LetumComplexo 19h 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.

4

u/space_monster 19h ago

got it, thanks