>return</span> <span class="n">log_likelihood</span></div>

<div class="viewcode-block" id="IndependentGaussian.sample"><a class="viewcode-back" href="../../../api/layers.html#torchdrug.layers.distribution.IndependentGaussian.sample">[docs]</a>    <span class="k">def</span> <span class="nf">sample</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">size</span><span class="p">):</span>
        <span class="sd">"""</span>
<span class="sd">