JIT=1``).</span>

<span class="sd">    Examples:</span>
<span class="sd">        &gt;&gt;&gt; x = torch.tensor([1.5, 0.4, -1.5], requires_grad=True)</span>
<span class="sd">        &gt;&gt;&gt; y = scalar_clamp_ste(x, -1.0, 1.0)</span>
<span class="sd">        &gt;&gt;&gt; y</span>
<span class="sd">        tensor([ 1.0000,  0.4000, -1.0000], grad_fn=&lt;ScalarClampSteFnBackward&gt;)</span>
<span class="sd">        &gt;&gt;&gt; grad = torch.tensor([0.1, -0.1, 0.1])</span>
<span class="sd">        &gt;&gt;&gt