Skip to content

Commit

Permalink
Make added functionalities public
Browse files Browse the repository at this point in the history
  • Loading branch information
msluszniak committed Jul 4, 2024
1 parent c973b8b commit 294a8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ex_vision/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ defmodule ExVision.Utils do
process_name |> batched_run([input]) |> hd()
end

defp process_bbox(bbox, scales, axes \\ [0]) do
def process_bbox(bbox, scales, axes \\ [0]) do

Check warning on line 159 in lib/ex_vision/utils.ex

View workflow job for this annotation

GitHub Actions / Build and test

Functions should have a @SPEC type specification.
bbox
|> Nx.squeeze(axes: axes)
|> Nx.multiply(scales)
Expand All @@ -165,7 +165,7 @@ defmodule ExVision.Utils do
|> Nx.to_list()
end

defp unbatch(batched_value, axes \\ [0]) do
def unbatch(batched_value, axes \\ [0]) do

Check warning on line 168 in lib/ex_vision/utils.ex

View workflow job for this annotation

GitHub Actions / Build and test

Functions should have a @SPEC type specification.
batched_value |> Nx.squeeze(axes: axes) |> Nx.to_list()
end
end

0 comments on commit 294a8cd

Please sign in to comment.