Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| import torch | |
| import torch.nn as nn | |
| import torch.nn.parallel | |
| class DCGAN_D(nn.Container): | |
| def __init__(self, isize, nz, nc, ndf, ngpu, n_extra_layers=0): | |
| super(DCGAN_D, self).__init__() | |
| self.ngpu = ngpu | |
| assert isize % 16 == 0, "isize has to be a multiple of 16" |