SigmaPi layer works on batches.