Dtype.Q8.quantize: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/dtype.bend as Dtype Lines 383-385 of bendtorch@1.3.0.0/dtype.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/dtype.bend&start_line=383&end_line=385 import Base import bend-ml-tensor-array@0.1.18.0/main.bend as TA # W quantized by rows (the matrix is consumed) def Q8.quantize(+r: Nat, +c: Nat, m: TA.Mat) -> Q8: q8_fin(r, c, Nat.mul(r, c), r, q8_rows(r, c, ml_l(r, c, TA.Mat.to_list(r, c, m)))) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor-array@0.1.19.0/main.bend&name=Mat https://jend.leeeet.dev/definition.txt?path=bend-ml-tensor-array@0.1.19.0/main.bend&name=Mat.to_list https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=Q8 https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=ml_l https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=q8_fin https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/dtype.bend&name=q8_rows