:</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">model</span><span class="o">.</span><span class="n">eval</span><span class="p">()</span></div>


<div class="viewcode-block" id="PyTorchModel.get_gradient">
<a class="viewcode-back" href="../../../dice_ml.model_interfaces.html#dice_ml.model_interfaces.pytorch_model.PyTorchModel.get_gradient">[docs]</a>
    <span class="k">def</span><span class="w"> </span><span class="nf">get_gradient</span><span class="p">(</span><span cla