-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c973b8b
commit 294a8cd
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 GitHub Actions / Build and test
|
||
bbox | ||
|> Nx.squeeze(axes: axes) | ||
|> Nx.multiply(scales) | ||
|
@@ -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 GitHub Actions / Build and test
|
||
batched_value |> Nx.squeeze(axes: axes) |> Nx.to_list() | ||
end | ||
end |