Skip to content
fn

from_mlx_dtype

→Dtype
Dtype from_mlx_dtype(int dt)

Map an mlx::core::Dtype back to a Lucid Dtype.

See Also

to_mlx_dtype — inverse direction.

Parameters

dtmlx::core::Dtype
MLX dtype enumerator.

Returns

Dtype

The corresponding Lucid dtype.

Raises

not_implemented
For unsigned integer types (uint8/16/32/64) and bfloat16 — Lucid does not currently expose Python-visible equivalents.