Skip to main content

Module helper

Module helper 

Source
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 Quantization to any matching integer tensor in tensors (matched by shape).