IRON 1.0
Loading...
Searching...
No Matches
Functions | Variables
iron.dtype Namespace Reference

Functions

 str_to_dtype (dtype_str)
 
 dtype_to_str (dtype)
 

Variables

dict dtype_map
 

Function Documentation

◆ dtype_to_str()

iron.dtype.dtype_to_str (   dtype)
Convert a dtype object to its string representation.

Args:
    dtype: The dtype object to convert.

Returns:
    str: The string representation of the dtype.

◆ str_to_dtype()

iron.dtype.str_to_dtype (   dtype_str)
Convert a string representation of a data type to its corresponding dtype object.

Args:
    dtype_str (str): The string representation of the data type.

Returns:
    dtype: The corresponding dtype object.

Variable Documentation

◆ dtype_map

dict iron.dtype.dtype_map
Initial value:
1= {
2 "bf16": bfloat16,
3 "i8": np.int8,
4 "i16": np.int16,
5 "f32": np.float32,
6 "i32": np.int32,
7}