-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inference failure in brfft on 0.7 #25
Comments
My bad, I can reproduce this at the REPL; I had the trigger of the error wrong. The code is @inferred brfft(randn(10, 12), 18) It's the 2-dimensional input case that can't be inferred. |
Checking out aa/dft on AbstractFFTs, aa/ugh-oh-my-god on FFTW, current Julia master: julia> using FFTW, AbstractFFTs, Base.Test
julia> x = randn(10, 12);
julia> @inferred brfft(x, 18);
ERROR: return type Array{Float64,2} does not match inferred return type Any
Stacktrace:
[1] error(::String) at ./error.jl:28
julia> @inferred brfft(AbstractFFTs.complexfloat(x), 18);
The interesting thing about this is that |
I've been talking with @JeffBezanson about this a bit but I'm having difficulty putting together a reduced reproducible case. Do you have any insight on this, @stevengj? |
I haven't been able to figure this out nor isolate it further, so if anyone could lend a hand or provide some insight, that would be very much appreciated. |
From the Travis log (also seeing locally):
The line that's being hit is equivalent to
@inferred brfft(randn(10), 18)
. Oddly enough, running that from the REPL works fine for me.The text was updated successfully, but these errors were encountered: