-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
add adaptive pool #1239
add adaptive pool #1239
Conversation
@dhairyagandhi96 do you know why no CI is being performed for this PR? |
weird |
The PR contains the CI YAML files as far as I can tell... Could bors be used to trigger? |
Shall I use GitHub Actions to add the CI workflow? I will create another PR for it. |
@dnabanita7 can you try forcing an empty commit with no changes? The CI should already be set up. It works for all the other commits.. |
It works now. |
Yeah thanks @CarloLucibello for restarting it! |
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.
Since you need to make another commit anyways, can you change the naming from in_size
-> insize
(same for other variables with underscores).
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.
Since you are removing the comments, I would get rid of the blank lines in between. Personally I would only have a blank line before the return statement.
|
The spaces between functions too? Well other functions don't have that in that file. |
Flux uses 2 whitespaces indent (unfortunately in my opinion), so you should correct all indents, except for docstrings (where you should leave 4) |
No that comment is out of date. Please ignore. |
What exactly do you mean? |
The error shown is method mismatch. Shall I change the constructor in struct to the above mentioned? |
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.
The error is from a constructor in NNlib.jl. You aren't dispatching to https://github.com/FluxML/NNlib.jl/blob/aa4bb07f35322498c9fabd391ab1ecd73d09afd4/src/dim_helpers/PoolDims.jl#L24 because the method signature says k
needs to be a tuple of ints (or a single int), and you are passing a tuple of floats.
I guess its good to get a final review from @DhairyaLGandhi or @MikeInnes |
@dnabanita7 An entry in the NEWS.md would be needed for this. |
Can we also add the tests to the GPU tests. I know |
There's a few other places that would need the |
thanks for this contribution bors r+ |
Build succeeded: |
I have added
AdaptiveMaxPool
andAdaptiveMeanPool
so that we can do a similar PyTorch implementation. cc @darsnackPR
@MikeInnes
or@dhairyagandhi96
(for API changes).Flux issue linking
Flux#1224
MLH issue linking
0.3.x-projects#26