Skip to content

Commit 0b99ae5

Browse files
authored
Update inc_net.py
1 parent bab07bb commit 0b99ae5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/inc_net.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ def generate_fc(self, in_dim, out_dim):
230230
return fc
231231

232232

233-
class BiasLayer(nn.Module):
233+
class BiasLayer_BIC(nn.Module):
234234
def __init__(self):
235-
super(BiasLayer, self).__init__()
235+
super(BiasLayer_BIC, self).__init__()
236236
self.alpha = nn.Parameter(torch.ones(1, requires_grad=True))
237237
self.beta = nn.Parameter(torch.zeros(1, requires_grad=True))
238238

@@ -285,7 +285,7 @@ def update_fc(self, nb_classes):
285285

286286
new_task_size = nb_classes - sum(self.task_sizes)
287287
self.task_sizes.append(new_task_size)
288-
self.bias_layers.append(BiasLayer())
288+
self.bias_layers.append(BiasLayer_BIC())
289289

290290
def generate_fc(self, in_dim, out_dim):
291291
fc = SimpleLinear(in_dim, out_dim)

0 commit comments

Comments
 (0)