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 4, 2024
1 parent 81346e3 commit cc898ad
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 cc898ad

Please sign in to comment.