Skip to content

Commit

Permalink
Docs fix (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz authored Dec 14, 2023
1 parent 9fc2ca1 commit dd365da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/safetensors.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
"""
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd365da

Please # to comment.