Skip to main content

parse_dtype

Function parse_dtype 

Source
pub fn parse_dtype(s: &str) -> Result<DType, CodememError>
Expand description

Parse a dtype string into a Candle DType.

Supported values: “f32” (default), “f16” (half precision — less memory, faster on Metal).