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

Commit d1a536b

Browse files
committed
rename fourier operator
1 parent 6787cd1 commit d1a536b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/fourier.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function (m::SpectralConv1d)(𝐱::AbstractArray)
4545
return m.σ.(𝐱_out)
4646
end
4747

48-
function FourierBlock(
48+
function FourierOperator(
4949
ch::Pair{<:Integer,<:Integer},
5050
modes::Integer,
5151
σ=identity
@@ -65,10 +65,10 @@ function FNO()
6565

6666
return Chain(
6767
Conv((1, ), 2=>64),
68-
FourierBlock(ch, modes, relu),
69-
FourierBlock(ch, modes, relu),
70-
FourierBlock(ch, modes, relu),
71-
FourierBlock(ch, modes),
68+
FourierOperator(ch, modes, relu),
69+
FourierOperator(ch, modes, relu),
70+
FourierOperator(ch, modes, relu),
71+
FourierOperator(ch, modes),
7272
Conv((1, ), 64=>128, relu),
7373
Conv((1, ), 128=>1),
7474
flatten

0 commit comments

Comments
 (0)