Skip to content

Instantly share code, notes, and snippets.

@denisyarats
Created July 3, 2019 21:20
Show Gist options
  • Save denisyarats/0a7b2358abf1b8328d62047f499ac95e to your computer and use it in GitHub Desktop.
Save denisyarats/0a7b2358abf1b8328d62047f499ac95e to your computer and use it in GitHub Desktop.
net = nn.Sequential(
nn.Conv2d(1, 64, 3),
nn.BatchNorm2d(64, momentum=1, affine=True),
nn.ReLU(inplace=True),
nn.MaxPool2d(2, 2),
nn.Conv2d(64, 64, 3),
nn.BatchNorm2d(64, momentum=1, affine=True),
nn.ReLU(inplace=True),
nn.MaxPool2d(2, 2),
nn.Conv2d(64, 64, 3),
nn.BatchNorm2d(64, momentum=1, affine=True),
nn.ReLU(inplace=True),
nn.MaxPool2d(2,2),
Flatten(),
nn.Linear(64, args.n_way)).to(device)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment