Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Jul 3, 2024
1 parent 4fd4998 commit 6f0d2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/brevitas/graph/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,6 @@ def forward(self, x):
model = TestModel()
assert model.conv.stride == (1, 1)

kwargs = {'stride': lambda module: 2 if module.in_channels == 3 else 1}
kwargs = {'stride': lambda module, name: 2 if module.in_channels == 3 else 1}
model = ModuleToModuleByInstance(model.conv, nn.Conv2d, **kwargs).apply(model)
assert model.conv.stride == (2, 2)

0 comments on commit 6f0d2f9

Please sign in to comment.