From 9e133fea468ec3c44128526563a70ff931424c3a Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Wed, 22 Nov 2023 15:20:24 -0300 Subject: [PATCH] refactor: cleans up noisy unused vars --- lib/candlex/backend.ex | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/candlex/backend.ex b/lib/candlex/backend.ex index acf1d88..ed02b08 100644 --- a/lib/candlex/backend.ex +++ b/lib/candlex/backend.ex @@ -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 @@ -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)