Skip to content

Commit b45c083

Browse files
committed
Fix CIFAR example
1 parent aee6c28 commit b45c083

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

bnn/layers/conv.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ def forward(self, input: torch.Tensor) -> torch.Tensor:
3636
input_proc = self.activation_pre_process(input)
3737
input_proc = self._conv_forward(input_proc, self.weight_pre_process(self.weight), bias=self.bias)
3838

39-
if isinstance(input_proc, tuple) and len(input_proc) == 1:
40-
input_proc = input_proc[0]
41-
4239
return self.activation_post_process(
4340
input_proc,
4441
input
@@ -94,9 +91,6 @@ def forward(self, input: torch.Tensor) -> torch.Tensor:
9491
input_proc = self.activation_pre_process(input)
9592
input_proc = self._conv_forward(input_proc, self.weight_pre_process(self.weight), bias=self.bias)
9693

97-
if isinstance(input_proc, tuple) and len(input_proc) == 1:
98-
input_proc = input_proc[0]
99-
10094
return self.activation_post_process(
10195
input_proc,
10296
input

0 commit comments

Comments
 (0)