Expand description
Optional helper: walk a schema-v2 document and attach
per-tensor Quantization to integer input tensors via shape match.
Use when the upstream inference layer hasn’t already attached quantization metadata to the tensors.
Functions§
- apply_
schema_ quant - Walk the schema’s logical outputs and their per-scale children,
attaching per-tensor
Quantizationto any matching integer tensor intensors(matched by shape).