Solved by ptrblck in post #2 
              
              
                You could iterate all modules and get their names via: 
for name, modules in model.named_modules():
    print(name)

# or
print(model.named_modules())