Skip to content

Commit 6465f93

Browse files
Convolutions (#22)
Co-authored-by: Paulo Valente <[email protected]> Add convolutions via direct and fft methods
1 parent 3088fd4 commit 6465f93

File tree

9 files changed

+1085
-15
lines changed

9 files changed

+1085
-15
lines changed

.github/workflows/ci.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
elixir: ["1.14.0"]
15-
otp: ["24.0"]
14+
elixir: ["1.18.0"]
15+
otp: ["27.0"]
1616
env:
1717
MIX_ENV: test
1818
steps:
@@ -22,11 +22,11 @@ jobs:
2222
otp-version: ${{ matrix.otp }}
2323
elixir-version: ${{ matrix.elixir }}
2424
- name: Retrieve dependencies cache
25-
uses: actions/cache@v1
25+
uses: actions/cache@v4
2626
id: mix-cache # id to use in retrieve action
2727
with:
2828
path: deps
29-
key: v1-${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
29+
key: v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('mix.lock') }}
3030
- name: Install dependencies
3131
if: ${{ steps.mix-cache.outputs.cache-hit != 'true' }}
3232
run: mix deps.get
@@ -42,8 +42,8 @@ jobs:
4242
strategy:
4343
fail-fast: false
4444
matrix:
45-
elixir: ["1.14.0"]
46-
otp: ["24.0"]
45+
elixir: ["1.18.0"]
46+
otp: ["27.0"]
4747
env:
4848
MIX_ENV: test
4949
steps:
@@ -57,11 +57,11 @@ jobs:
5757
otp-version: ${{ matrix.otp }}
5858
elixir-version: ${{ matrix.elixir }}
5959
- name: Retrieve dependencies cache
60-
uses: actions/cache@v1
60+
uses: actions/cache@v4
6161
id: mix-cache # id to use in retrieve action
6262
with:
6363
path: deps
64-
key: v1-${{ matrix.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
64+
key: v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('mix.lock') }}
6565
- name: Install dependencies
6666
if: ${{ steps.mix-cache.outputs.cache-hit != 'true' }}
6767
run: mix deps.get

lib/nx_signal.ex

+1-2
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,6 @@ defmodule NxSignal do
731731

732732
in_shape
733733
|> Tuple.delete_at(idx)
734-
|> Tuple.delete_at(idx)
735-
|> Tuple.append(out_len)
734+
|> put_elem(idx, out_len)
736735
end
737736
end

0 commit comments

Comments
 (0)