Created
July 3, 2019 21:20
-
-
Save denisyarats/0a7b2358abf1b8328d62047f499ac95e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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