Load an MLX array from disk
mlx_load.RdRestores an array saved with mlx_save() and optionally places it on a
specified device.
Usage
mlx_load(file, device = mlx_default_device())Arguments
- file
- Path to a - .npyfile. The extension is appended automatically when missing.
- device
- Execution target: supply - "gpu",- "cpu", or an- mlx_streamcreated via- mlx_new_stream(). Default:- mlx_default_device().
Details
Use an mlx_stream from mlx_new_stream() to load directly onto a
specific stream; otherwise the array is placed on the current
mlx_default_device().