MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / forward

Method forward

core/utils/transformation.py:392–399  ·  view source on GitHub ↗
(self, theta)

Source from the content-addressed store, hash-verified

390 self.out_ch = out_ch
391
392 def forward(self, theta):
393 b = theta.size()[0]
394 if not theta.size() == (b, 2, 3):
395 theta = theta.view(-1, 2, 3)
396 theta = theta.contiguous()
397 batch_size = theta.size()[0]
398 out_size = torch.Size((batch_size, self.out_ch, self.out_h, self.out_w))
399 return F.affine_grid(theta, out_size, align_corners=True)
400
401
402class AffineGridGenV2(Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected