-
Notifications
You must be signed in to change notification settings - Fork 36
Remove _kernel, sort out kappa #95
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
Conversation
As I wrote in my comment above, I would be fine with this change but it requires us to drop support for Julia < 1.3 which we have been trying to avoid so far. |
Oh, fair point. For some reason I thought it didn't affect this case... my mistake. Personally I'm completely happy to drop < 1.3 support -- it's not like we have packages that depend on @theogf thoughts on this? |
I am also happy to drop support julia < 1.3. Given the new structure, it does not make sense anymore to keep it this way. |
Co-Authored-By: Théo Galy-Fajou <[email protected]>
Co-Authored-By: Théo Galy-Fajou <[email protected]>
All requested changes addressed. If either @theogf or @devmotion could re-review to approve / request more changes, that would be grand. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just left two minor comments. If they are resolved and tests pass, I'm fine with merging!
Ok for me too! Just need to make the tests pass |
All comments addressed. Will merge once tests pass. |
@theogf any idea what's going on with the test failures? |
It's weird I just tried the branch locally and it's passing the tests |
Hmmm yeah, same. Presumably a dependency has broken somewhere in the pipeline. Maybe it's a Flux thing? |
It fails for me 🤔 Did you run |
I compared https://travis-ci.com/github/JuliaGaussianProcesses/KernelFunctions.jl/jobs/323153454 with https://travis-ci.com/github/JuliaGaussianProcesses/KernelFunctions.jl/jobs/322480149, and it seems the main difference in the dependencies are Zygote 0.4.17 instead of 0.4.15 and CUDAdrv 6.2.3 instead of 6.2.2. The Flux version was 0.10.4 in both cases. |
This change in the v0.4.17 release looks relevant. |
Yep, seems someone else got similar issues with 0.4.17 (linked in the relevant PR). I just confirmed it locally, tests pass with 0.4.16. |
I've temporarily pinned Zygote to 0.4.16. @devmotion do you have the bandwidth to chase this up on the Zygote repo? |
Addresses #87 .
Also no longer exports
kappa
, as it's now not needed as part of the public API.I found a redundant function called
_scale
, so removed that.Iteration over concrete subtypes of
Kernel
removed fromgeneric
as no longer required.edit: the reason for quite a bit of code movement is that I originally hadn't realised I could implement
(k::SimpleKernel)(x, y)
, and had to modify most kernel files, so sorted out spacing while I was there. I stand my the changes in formatting, even if they're not strictly the focus of this PR.