Skip to content

Commit

Permalink
Merge pull request #37 from mcabbott/patch-2
Browse files Browse the repository at this point in the history
Update for Flux 0.13
  • Loading branch information
ChrisRackauckas authored Mar 9, 2022
2 parents 9b16e02 + 4727fac commit 7e9f9c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OperatorLearning"
uuid = "5913d0e6-5bb6-45e3-8a06-341cf4fd0203"
authors = ["Patrick Zimbrod <[email protected]>"]
version = "0.2.1"
version = "0.2.2"

[deps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
Expand All @@ -14,7 +14,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
[compat]
CUDA = "3"
FFTW = "1"
Flux = "0.12"
Flux = "0.12, 0.13"
NNlib = "0.8"
OMEinsum = "0.6"
julia = "1.6"
Expand Down
10 changes: 5 additions & 5 deletions test/fourierlayer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ using Test, Random, Flux
# We only use a subset of the weight tensors for training
@testset "parameters" begin
# Wf
@test size(params(FourierLayer(128, 64, 100, 20))[1]) == (128, 64, 20)
@test size(Flux.params(FourierLayer(128, 64, 100, 20))[1]) == (128, 64, 20)
# Wl
@test size(params(FourierLayer(128, 64, 100, 20))[2]) == (64, 128)
@test size(Flux.params(FourierLayer(128, 64, 100, 20))[2]) == (64, 128)
# bf
@test size(params(FourierLayer(128, 64, 100, 20))[3]) == (1, 64, 20)
@test size(Flux.params(FourierLayer(128, 64, 100, 20))[3]) == (1, 64, 20)
# bl
@test size(params(FourierLayer(128, 64, 100, 20))[4]) == (1, 64, 100)
@test size(Flux.params(FourierLayer(128, 64, 100, 20))[4]) == (1, 64, 100)
end

# Accept only Int as architecture parameters
Expand All @@ -28,4 +28,4 @@ using Test, Random, Flux
# Test max amount of modes
@test_throws AssertionError FourierLayer(100, 100, 100, 60, σ)
@test_throws AssertionError FourierLayer(100, 100, 100, 60)
end
end

0 comments on commit 7e9f9c2

Please sign in to comment.