[ 1., -2.], grad_fn=&lt;FloorSteFnBackward&gt;)</span>
<span class="sd">        &gt;&gt;&gt; grad = torch.tensor([0.1, -0.1])</span>
<span class="sd">        &gt;&gt;&gt; y.backward(grad)</span>
<span class="sd">        &gt;&gt;&gt; (x.grad == grad).all().item()</span>
<span class="sd">        True</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="k">if</span> <span class="n">torch</span><span class="o">.</span><span class="n">_C</span><span class="o">.</span><span class="n">_get_tracin