Module that generate Fourier encoding - no learning involved
(self, n, num_bands, max_resolution)
| 8 | |
| 9 | class FourierPositionEncoding(nn.Module): |
| 10 | def __init__(self, n, num_bands, max_resolution): |
| 11 | """ |
| 12 | Module that generate Fourier encoding - no learning involved |
| 13 | """ |
| 14 | super().__init__() |
| 15 | |
| 16 | self.num_bands = num_bands |
| 17 | self.max_resolution = [max_resolution] * n |
| 18 | |
| 19 | @property |
| 20 | def channels(self): |
nothing calls this directly
no outgoing calls
no test coverage detected