def __init__(self, net, projection_size, projection_hidden_size, layer=(- 2)):
    super().__init__()
    self.net = net
    self.layer = layer
    self.projector = None
    self.projection_size = projection_size
    self.projection_hidden_size = projection_hidden_size
    self.hidden = None
    self.hook_registered = False
def __init__(self, net, projection_size, projection_hidden_size, layer=(- 2)):
    super().__init__()
    self.net = net
    self.layer = layer
    self.projector = None
    self.projection_size = projection_size
    self.projection_hidden_size = projection_hidden_size
    self.hidden = None
    self.hook_registered = False