Skip to content
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 a MaxPool object #13

Closed
dpsanders opened this issue Jun 28, 2018 · 3 comments
Closed

Add a MaxPool object #13

dpsanders opened this issue Jun 28, 2018 · 3 comments

Comments

@dpsanders
Copy link

dpsanders commented Jun 28, 2018

We should add a MaxPool object, so that displaying the layers in eg. VGG19 looks better:

julia> vgg.layers.layers
28-element Array{Any,1}:
 Conv((3, 3), 3=>64, NNlib.relu)   
 Conv((3, 3), 64=>64, NNlib.relu)  
 Metalhead.#52                     
 Conv((3, 3), 64=>128, NNlib.relu) 
 Conv((3, 3), 128=>128, NNlib.relu)
 Metalhead.#53                     
 Conv((3, 3), 128=>256, NNlib.relu)
 Conv((3, 3), 256=>256, NNlib.relu)
 Conv((3, 3), 256=>256, NNlib.relu)
 Conv((3, 3), 256=>256, NNlib.relu)
 Metalhead.#54                     
 Conv((3, 3), 256=>512, NNlib.relu)
 Conv((3, 3), 512=>512, NNlib.relu)
                                  
 Conv((3, 3), 512=>512, NNlib.relu)
 Conv((3, 3), 512=>512, NNlib.relu)
 Conv((3, 3), 512=>512, NNlib.relu)
 Conv((3, 3), 512=>512, NNlib.relu)
 Metalhead.#56                     
 Metalhead.#57                     
 Dense(25088, 4096, NNlib.relu)    
 Flux.Dropout{Float32}(0.5, false) 
 Dense(4096, 4096, NNlib.relu)     
 Flux.Dropout{Float32}(0.5, false) 
 Dense(4096, 1000)                 
 NNlib.softmax   
@MikeInnes
Copy link
Member

Would be happy to see a Flux PR for this (should only be a couple lines).

@MikeInnes
Copy link
Member

This will be added to Flux by FluxML/Flux.jl#339, so once that's in we can use it here.

@yuehhua
Copy link
Member

yuehhua commented Jan 13, 2020

This has already been added by #43, so this issue can be closed.

@darsnack darsnack closed this as completed Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants