Skip to content

Instantly share code, notes, and snippets.

@ayulockin
Last active May 8, 2020 15:25
Show Gist options
  • Save ayulockin/d49fc86de5e8b06f57edfda254e57811 to your computer and use it in GitHub Desktop.
Save ayulockin/d49fc86de5e8b06f57edfda254e57811 to your computer and use it in GitHub Desktop.
class NetforExplode(nn.Module):
def __init__(self):
super(NetforExplode, self).__init__()
self.conv1 = nn.Conv2d(1, 32, 3, 1)
self.conv1.weight.data.fill_(100)
self.conv1.bias.data.fill_(-100)
self.conv2 = nn.Conv2d(32, 64, 3, 1)
self.conv2.weight.data.fill_(100)
self.conv2.bias.data.fill_(-100)
self.fc1 = nn.Linear(9216, 128)
self.fc1.weight.data.fill_(100)
self.fc1.bias.data.fill_(-100)
self.fc2 = nn.Linear(128, 10)
self.fc2.weight.data.fill_(100)
self.fc2.bias.data.fill_(-100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment