returnn.frontend.dtype
¶
DType helpers
- returnn.frontend.dtype.get_default_float_dtype() str [source]¶
https://data-apis.org/array-api/latest/API_specification/data_types.html#default-data-types
- Returns:
default dtype for float
- returnn.frontend.dtype.set_default_float_dtype(dtype: str)[source]¶
Set the default float dtype
- Parameters:
dtype – the new default float dtype
- returnn.frontend.dtype.set_default_float_dtype_ctx(dtype: str)[source]¶
- Parameters:
dtype – see
get_default_float_dtype()
- returnn.frontend.dtype.get_default_int_dtype() str [source]¶
https://data-apis.org/array-api/latest/API_specification/data_types.html#default-data-types
- Returns:
default dtype for int
- returnn.frontend.dtype.get_default_array_index_dtype() str [source]¶
https://data-apis.org/array-api/latest/API_specification/data_types.html#default-data-types
- Returns:
default dtype for array index - currently just the same as
get_default_int_dtype()