Skip to content

Commit

Permalink
Update inc_net.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoudw-zdw authored Jul 13, 2023
1 parent bab07bb commit 0b99ae5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/inc_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ def generate_fc(self, in_dim, out_dim):
return fc


class BiasLayer(nn.Module):
class BiasLayer_BIC(nn.Module):
def __init__(self):
super(BiasLayer, self).__init__()
super(BiasLayer_BIC, self).__init__()
self.alpha = nn.Parameter(torch.ones(1, requires_grad=True))
self.beta = nn.Parameter(torch.zeros(1, requires_grad=True))

Expand Down Expand Up @@ -285,7 +285,7 @@ def update_fc(self, nb_classes):

new_task_size = nb_classes - sum(self.task_sizes)
self.task_sizes.append(new_task_size)
self.bias_layers.append(BiasLayer())
self.bias_layers.append(BiasLayer_BIC())

def generate_fc(self, in_dim, out_dim):
fc = SimpleLinear(in_dim, out_dim)
Expand Down

0 comments on commit 0b99ae5

Please sign in to comment.