mlx.data.Buffer.load_file#
- Buffer.load_file(self: mlx.data._c.Buffer, key: str, prefix: os.PathLike = '', output_key: str = '') mlx.data._c.Buffer #
Load the contents of a file.
It opens the file pointed by
key
in binary mode and reads its contents.