Solved by ptrblck in post #2 
              
              
                for name, moduke in model.named_modules():  # or model.named_children():
    print(name)

should return the module names, which should be unique. 
Would this work for you?