e, zero_point, bit_width, signed = torch.tensor(0.01), torch.tensor(0.), torch.tensor(8.), torch.tensor(True)</span>
<span class="sd">        &gt;&gt;&gt; inp = torch.Tensor([0.04, -0.05, 0.31, -0.44])</span>
<span class="sd">        &gt;&gt;&gt; out, scale, zero_point, bit_width = trunc_quant(inp, scale, zero_point, bit_width, signed)</span>
<span class="sd">        &gt;&gt;&gt; out</span>
<span class="sd">        &gt;&gt;&gt; tensor([ 0.0000, -0.0000,  0.3200, -0.4800])</span>
<span class="sd">        &gt