def METHOD_NAME():
    resnet = AlexNet.alexnet()
    def foo(net):
        childrens = list(net.children())
        if not childrens:
            if isinstance(net, torch.nn.Conv2d):
                print(' ')
                # net.register_backward_hook(print)
            return 1
        count = 0
        for c in childrens:
            print(c, count)
            count += foo(c)
        return count
    print(foo(resnet))