MamaPearl commited on
Commit
d9a85a3
·
verified ·
1 Parent(s): 39f47a1

Update modeling_nula.py

Browse files
Files changed (1) hide show
  1. modeling_nula.py +1 -1
modeling_nula.py CHANGED
@@ -144,7 +144,7 @@ class NulaForImageClassification(PreTrainedModel):
144
  elif isinstance(module, nn.Linear):
145
  nn.init.xavier_uniform_(module.weight)
146
  nn.init.zeros_(module.bias)
147
- if isinstance(module, NULAConvBlock) and hasattr(module, "bn2"):
148
  nn.init.zeros_(module.bn2.weight)
149
 
150
  def forward(self, pixel_values=None, labels=None, return_dict=None):
 
144
  elif isinstance(module, nn.Linear):
145
  nn.init.xavier_uniform_(module.weight)
146
  nn.init.zeros_(module.bias)
147
+ if isinstance(module, NulaConvBlock) and hasattr(module, "bn2"):
148
  nn.init.zeros_(module.bn2.weight)
149
 
150
  def forward(self, pixel_values=None, labels=None, return_dict=None):