From dd365dab5d647936e4a562bb79988ef0e31c9653 Mon Sep 17 00:00:00 2001 From: Barna Kovacs Date: Thu, 14 Dec 2023 20:07:16 +0100 Subject: [PATCH] Docs fix (#6) --- lib/safetensors.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/safetensors.ex b/lib/safetensors.ex index cdd95bc..4258196 100644 --- a/lib/safetensors.ex +++ b/lib/safetensors.ex @@ -44,7 +44,7 @@ defmodule Safetensors do @doc """ Serializes the given map of tensors to iodata. - `iodata` is a list of binaries that can be written to any io device, + `iodata` is a list of binaries that can be written to any IO device, such as a file or a socket. You can ensure the result is a binary by calling `IO.iodata_to_binary/1`. """ @@ -89,7 +89,7 @@ defmodule Safetensors do Reads a safe tensor from file. Tensors are loaded into Nx one by one, - without loading the whole file into disk. + without the need to load the entire file from disk into memory. """ @spec read!(path :: Path.t()) :: %{String.t() => Nx.Tensor.t()} def read!(path) do