bitorch_engine.utils.mlx_path.is_mlx_available

bitorch_engine.utils.mlx_path.is_mlx_available() bool[source]

Checks if the MLX library is available for use.

This function determines the availability of the MLX library by verifying both the include path and the library path of MLX. It does this by calling two functions: get_mlx_include_path and get_mlx_lib_path. For the MLX library to be considered available, both of these functions must return a value that is not None.

Returns:

True if both the MLX include path and the MLX library path are available (i.e., not None), indicating that the MLX library is available for use. Otherwise, returns False.

Return type:

bool