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

Commit d3f83c4

Browse files
Merge pull request #156 from tknopp/main
Switch Compat to be compatible with Flux 0.14
2 parents e653a7e + c0f3483 commit d3f83c4

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Project.toml

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ version = "0.4.7"
55

66
[deps]
77
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
8-
CUDAKernels = "72cfdca4-0801-4ab0-bf6a-d52aa10adc57"
98
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
109
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
1110
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
@@ -17,12 +16,11 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
1716

1817
[compat]
1918
CUDA = "3, 4, 5"
20-
CUDAKernels = "0.3, 0.4"
2119
ChainRulesCore = "1"
2220
FFTW = "1"
23-
Flux = "0.13"
24-
GeometricFlux = "0.13"
25-
KernelAbstractions = "0.7, 0.8"
21+
Flux = "0.13, 0.14"
22+
GeometricFlux = "0.13, 0.14"
23+
KernelAbstractions = "0.7, 0.8, 0.9"
2624
Statistics = "1"
2725
Tullio = "0.3"
2826
Zygote = "0.6"

src/NeuralOperators.jl

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ using Flux
44
using FFTW
55
using Tullio
66
using CUDA
7-
using CUDAKernels
87
using KernelAbstractions
98
using Zygote
109
using ChainRulesCore

src/Transform/fourier_transform.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ truncate_modes(ft::FourierTransform, 𝐱_fft::AbstractArray) = low_pass(ft,
1919

2020
function inverse(ft::FourierTransform, 𝐱_fft::AbstractArray{T, N},
2121
M::NTuple{N, Int64}) where {T, N}
22-
return real(irfft(𝐱_fft, M[1], 1:ndims(ft))) # [size(x_fft)..., out_chs, batch]
22+
return real(irfft(complex(𝐱_fft), M[1], 1:ndims(ft))) # [size(x_fft)..., out_chs, batch]
2323
end

0 commit comments

Comments
 (0)