quantnn/models/pytorch/common.py
def reset(self):
        """
        Reinitializes the weights of a model.
        """

        def reset_function(module):
            if isinstance(m, nn.Conv2d) or isinstance(m, nn.Linear):
                m.reset_parameters()

        self.apply(reset_function)

        Reinitializes the weights of a model.
        
Reinitializes the weights of a model.
Reinitializes the weights of a model .
def reset(self):
        def reset_function(module):
            if isinstance(m, nn.Conv2d) or isinstance(m, nn.Linear):
                m.reset_parameters()
        self.apply(reset_function)
def reset ( self ) : def reset_function ( module ) : if isinstance ( m , nn . Conv2d ) or isinstance ( m , nn . Linear ) : m . reset_parameters ( ) self . apply ( reset_function )
Reinitializes the weights of a model.
Reinitializes the weights of a model .
"""
        Reinitializes the weights of a model.
        """
self