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

Commit

Permalink
fix: accidental public API change (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal authored Aug 20, 2024
1 parent e248a56 commit d22b523
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fno.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ kernels, and two `Dense` layers to project data back to the scalar field of inte
## Example
```jldoctest
julia> fno = FourierNeuralOperator(; σ=gelu, chs=(2, 64, 64, 128, 1), modes=(16,));
julia> fno = FourierNeuralOperator(gelu; chs=(2, 64, 64, 128, 1), modes=(16,));
julia> ps, st = Lux.setup(Xoshiro(), fno);
Expand All @@ -44,8 +44,8 @@ julia> size(first(fno(u, ps, st)))
project
end

function FourierNeuralOperator(;
σ=gelu, chs::Dims{C}=(2, 64, 64, 64, 64, 64, 128, 1), modes::Dims{M}=(16,),
function FourierNeuralOperator(
σ=gelu; chs::Dims{C}=(2, 64, 64, 64, 64, 64, 128, 1), modes::Dims{M}=(16,),
permuted::Val{perm}=Val(false), kwargs...) where {C, M, perm}
@argcheck length(chs) 5

Expand Down

0 comments on commit d22b523

Please sign in to comment.