Skip to content

Commit

Permalink
refactor: cleans up noisy unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Nov 22, 2023
1 parent b55a50b commit 9e133fe
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/candlex/backend.ex
Original file line number Diff line number Diff line change
Expand Up @@ -557,13 +557,13 @@ defmodule Candlex.Backend do

@impl true
def dot(
%T{type: _out_type} = out,
%T{shape: left_shape, type: _left_type} = left,
[left_axis] = _left_axes,
[] = _left_batched_axes,
%T{shape: right_shape, type: _right_type} = right,
[0] = _right_axes,
[] = _right_batched_axes
%T{} = out,
%T{shape: left_shape} = left,
[left_axis],
[],
%T{shape: right_shape} = right,
[0],
[]
)
when tuple_size(left_shape) >= 1 and tuple_size(right_shape) == 1 and
left_axis == tuple_size(left_shape) - 1 do
Expand All @@ -576,13 +576,13 @@ defmodule Candlex.Backend do
end

def dot(
%T{type: _out_type} = out,
%T{shape: left_shape, type: _left_type} = left,
[1] = _left_axes,
[] = _left_batched_axes,
%T{shape: right_shape, type: _right_type} = right,
[0] = _right_axes,
[] = _right_batched_axes
%T{} = out,
%T{shape: left_shape} = left,
[1],
[],
%T{shape: right_shape} = right,
[0],
[]
)
when tuple_size(left_shape) == 2 and tuple_size(right_shape) == 2 do
{left, right} = maybe_upcast(left, right)
Expand Down

0 comments on commit 9e133fe

Please sign in to comment.