Skip to main content

init_backend

Function init_backend 

Source
pub fn init_backend(strict: bool, backend: Backend) -> Result<Group>
Expand description

Initialises backend from MLX’s environment and makes it the default group, as MLX’s init(strict, backend). A backend initialised before returns its group (Any: the first group initialised). Without the environment: an error naming the missing variables if strict, else the group of this process alone.