(self, motion_dim)
| 417 | |
| 418 | class Direction(nn.Module): |
| 419 | def __init__(self, motion_dim): |
| 420 | super(Direction, self).__init__() |
| 421 | |
| 422 | self.weight = nn.Parameter(torch.randn(512, motion_dim)) |
| 423 | |
| 424 | def forward(self, input): |
| 425 | weight = self.weight + 1e-8 |