nput tensor.</span>
<span class="sd">        max_val: scalar value to use as upper bound for the input tensor.</span>

<span class="sd">    Returns:</span>
<span class="sd">        Tensor: clamped output tensor.</span>

<span class="sd">    Notes:</span>
<span class="sd">        Wrapper for either :func:`~brevitas.ops.autograd_ste_ops.scalar_clamp_ste_impl`</span>
<span class="sd">        (with env ``BREVITAS_JIT=0``) or its C++ just-in-time compiled variant</span>
<span class="sd">        (with ``BREVITAS_