e.scaling import ConstScaling</span>
<span class="sd">        &gt;&gt;&gt; binary_quant = BinaryQuant(ConstScaling(0.1))</span>
<span class="sd">        &gt;&gt;&gt; inp = torch.Tensor([0.04, -0.6, 3.3])</span>
<span class="sd">        &gt;&gt;&gt; out, scale, zero_point, bit_width = binary_quant(inp)</span>
<span class="sd">        &gt;&gt;&gt; out</span>
<span class="sd">        tensor([ 0.1000, -0.1000,  0.1000])</span>
<span class="sd">        &gt;&gt;&gt; scale</span>
<span class="sd">        tensor(0.