(self, out_h=240, out_w=240, out_ch=3, use_cuda=True)
| 384 | |
| 385 | class AffineGridGen(Module): |
| 386 | def __init__(self, out_h=240, out_w=240, out_ch=3, use_cuda=True): |
| 387 | super(AffineGridGen, self).__init__() |
| 388 | self.out_h = out_h |
| 389 | self.out_w = out_w |
| 390 | self.out_ch = out_ch |
| 391 | |
| 392 | def forward(self, theta): |
| 393 | b = theta.size()[0] |