Skip to content

Commit

Permalink
Fix resnet
Browse files Browse the repository at this point in the history
  • Loading branch information
curegit committed Jun 1, 2024
1 parent 0770ff2 commit c32ccef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions descreen/networks/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ def forward(self, x: Tensor) -> Tensor:

def input_size_unchecked(self, output_size: int) -> int:
size = output_size
for _ in range(len(self.blocks)):
size = input_size(size, 3)
for b in self.blocks:
size = b.input_size(size)
return size

def output_size_unchecked(self, input_size: int) -> int:
size = input_size
for _ in range(len(self.blocks)):
size = output_size(size, 3)
for b in self.blocks:
size = b.output_size(size)
return size

0 comments on commit c32ccef

Please sign in to comment.