Skip to main content

read_reals

Function read_reals 

Source
pub fn read_reals(path: String) -> Result<Vec<f64>, String>
Expand description

Reads a file of little-endian IEEE-754 binary64 values, eight bytes a value in order: the numbers a program reads at run time rather than carries as code (readReals; a model’s weights). The interpreter and the AOT-Rust lowering both call this, so the read and its refusals are one. A file that is not a whole number of values is refused.