Example #1
0
 def __init__(self):
     super().__init__(derivatives=LinearDerivatives(),
                      params=["weight", "bias"])
Example #2
0
 def __init__(self, damping=1.0, alpha=0.95):
     self.damping = damping
     self.alpha = alpha
     super().__init__(derivatives=LinearDerivatives(),
                      params=["bias", "weight"])
Example #3
0
 def __init__(self, MODE):
     self.MODE = MODE
     super().__init__(derivatives=LinearDerivatives(),
                      params=["bias", "weight"])
Example #4
0
 def __init__(self):
     """Initialization."""
     super().__init__(["bias", "weight"], derivatives=LinearDerivatives())
Example #5
0
 def __init__(self, silent=False):
     self.silent = silent
     super().__init__(derivatives=LinearDerivatives(),
                      params=["bias", "weight"])
Example #6
0
 def __init__(self):
     """Pass derivatives for ``torch.nn.Linear`` module."""
     super().__init__(LinearDerivatives(), params=["bias", "weight"])