Skip to content

Commit

Permalink
GPU Code
Browse files Browse the repository at this point in the history
  • Loading branch information
nehaprakriya authored Nov 27, 2022
1 parent acfca2d commit 228c8f3
Show file tree
Hide file tree
Showing 6 changed files with 1,018 additions and 472 deletions.
4 changes: 2 additions & 2 deletions resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def forward(self, x):
return out


def resnet20():
return ResNet(BasicBlock, [3, 3, 3])
def resnet20(num_classes=10):
return ResNet(BasicBlock, [3, 3, 3], num_classes=num_classes)


def resnet32():
Expand Down
4 changes: 2 additions & 2 deletions resnet_quant.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,6 @@ def forward(self, x):
out = self.dequant(out)
return out

def resnet20():
return ResNet(BasicBlock, [3, 3, 3])
def resnet20(num_classes=10):
return ResNet(BasicBlock, [3, 3, 3], num_classes=num_classes)

Loading

0 comments on commit 228c8f3

Please sign in to comment.