demo · v135

Half-precision budget

Type a Float64 value and immediately see what it becomes in Float32 vs Float16. The bytes saved — per element and per million-element tensor — appear alongside the rounding error. Use this to decide which ML / audio / image pipelines can afford the precision cut.

Float16Array: ?
Float64 —
8 bytes / elem
—
Float32 —
4 bytes / elem
—
—
Float16 —
2 bytes / elem
—
—

byte savings vs Float32

—

see also