Skip to content

Instantly share code, notes, and snippets.

@yashppawar
Last active August 18, 2021 10:43
Show Gist options
  • Save yashppawar/18fa4b21cfd766348ca67d0f4c075995 to your computer and use it in GitHub Desktop.
Save yashppawar/18fa4b21cfd766348ca67d0f4c075995 to your computer and use it in GitHub Desktop.
a model which contains an error
import torch.nn as nn
class DemoErrorModel(nn.Module):
def __init__(self, input_size=10, num_classes=2):
super(DemoErrorModel, self).__init__()
self.layer = nn.Linear(input_size, num_classes)
def foward(self, X):
return self.layer(X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment