Skip to content

Commit

Permalink
Add pipe symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
msluszniak committed Jul 3, 2024
1 parent 418def9 commit 5901895
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ex_vision/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ defmodule ExVision.Utils do

defp ensure_grad_3(tensor) do
tensor

Nx.rank()
|> Nx.rank()
|> case do
3 -> [tensor]
4 -> tensor |> Nx.to_batched(1) |> Stream.map(&Nx.squeeze(&1, axes: [0])) |> Enum.to_list()
Expand Down

0 comments on commit 5901895

Please sign in to comment.