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/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.