Skip to content

Commit

Permalink
Document dimension names of the Nx tensor. Bump version to 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mickel8 committed Dec 30, 2024
1 parent 5f131b0 commit e515ec8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Make sure you have installed FFMpeg (ver. 4.x - 7.x) development packages on you
```elixir
def deps do
[
{:xav, "~> 0.8.0"},
{:xav, "~> 0.8.1"},
# Add Nx if you want to have Xav.Frame.to_nx/1
{:nx, ">= 0.0.0"}
]
Expand Down
2 changes: 2 additions & 0 deletions lib/frame.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ defmodule Xav.Frame do
if Code.ensure_loaded?(Nx) do
@doc """
Converts a frame to an Nx tensor.
In case of a video frame, dimension names of the newly created tensor are `[:height, :width, :channels]`.
"""
@spec to_nx(t()) :: Nx.Tensor.t()
def to_nx(%__MODULE__{type: :video} = frame) do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Xav.MixProject do
use Mix.Project

@version "0.8.0"
@version "0.8.1"
@source_url "https://github.com/elixir-webrtc/xav"

def project do
Expand Down

0 comments on commit e515ec8

Please sign in to comment.