Solved by Nikronic in post #2 
              
              
                Hi, 
First you need to define your weight initializer function regarding one layer. 
Here is an example: 
def init_weights(m):
    """
    Initialize weights of layers using Kaiming Normal (He et al.) as argument of "Apply" function of
    "nn.Module"

    :param m: Layer to initialize
    :return: …