Skip to main content

MAX_CLAMP_BOUND_BYTES

Constant MAX_CLAMP_BOUND_BYTES 

Source
pub const MAX_CLAMP_BOUND_BYTES: usize = 8;
Expand description

Typed operator kinds supported by the initial authoring surface.

Variants with no fields still name their exact TOSA attribute table. This prevents a caller from pairing an opcode with the wrong union member. Bytes of inline storage for one CLAMP bound: enough for every TOSA scalar dtype. The bounds are one scalar each in the operand’s own dtype, so they are carried as serialized bytes; a wider numeric type could not represent an integer or FP8 bound faithfully.