Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit 6787cd1

Browse files
committed
remove type for \sigma
1 parent 3f860ba commit 6787cd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fourier.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ struct SpectralConv1d{T,S}
1111
in_channel::S
1212
out_channel::S
1313
modes::S
14-
σ::Function
14+
σ
1515
end
1616

1717
function SpectralConv1d(
1818
ch::Pair{<:Integer,<:Integer},
1919
modes::Integer,
20-
σ::Function=identity;
20+
σ=identity;
2121
init=Flux.glorot_uniform,
2222
T::DataType=Float32
2323
)
@@ -48,7 +48,7 @@ end
4848
function FourierBlock(
4949
ch::Pair{<:Integer,<:Integer},
5050
modes::Integer,
51-
σ::Function=identity
51+
σ=identity
5252
)
5353
return Chain(
5454
Parallel(+,

0 commit comments

Comments
 (0)