Skip to main content

parse_bf16_literal_cell

Function parse_bf16_literal_cell 

Source
pub fn parse_bf16_literal_cell(value: &Value) -> Option<bf16>
Expand description

Parses a tensor cell as a bfloat16 value, returning None unless it is a number in the numbers/bf16 domain whose canonical f32-form text parses cleanly.