I want to iterate through the children() of a module,
and identify all the convolutional layers (for instance), or maybe all the maxpool layers, to do something with them.
How can I determine the type of layer?
My code would be something like this:
for layer in net.children():
    if layer is a conv layer:  # ??? how do I do this ???
        do something with the layer

Thanks!