Skip to content

Commit

Permalink
fix l2norm test
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire committed Mar 11, 2022
1 parent 120f4ac commit 7912179
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_codebase/test_mmdet/test_mmdet_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def get_l2norm_forward_model():
"""L2Norm Neck Config."""
from mmdet.models.necks.ssd_neck import L2Norm
model = L2Norm(16)
torch.nn.init.uniform_(model.weight)

model.requires_grad_(False)
return model
Expand Down

0 comments on commit 7912179

Please sign in to comment.