s="k">return</span> <span class="n">torch</span><span class="o">.</span><span class="n">dstack</span><span class="p">((</span>
            <span class="c1"># B x N x D -&gt; N x B x D</span>
            <span class="n">torch</span><span class="o">.</span><span class="n">transpose</span><span class="p">(</span><span class="n">Poisson</span><span class="p">(</span><span class="n">rate</span><span class="o">=</span><span class="n">nu</span><span class="o">*</span><span class="bp">self</span><span class="o">.</