mlx.core.savez_compressed

mlx.core.savez_compressed#

savez_compressed(file: str, *args, **kwargs)#

将多个数组保存为压缩的 .npz 格式二进制文件。

参数:
  • file (文件, 字符串) – 要保存数组的文件路径。

  • *args (数组) – 要保存的数组。

  • **kwargs (数组) – 要保存的数组。每个数组将使用关联的关键字作为输出文件名进行保存。