Forward pass that take rays as input and generate Fourier positional encodings
(self, pos)
| 29 | return encoding_size |
| 30 | |
| 31 | def forward(self, pos): |
| 32 | """ |
| 33 | Forward pass that take rays as input and generate Fourier positional encodings |
| 34 | """ |
| 35 | fourier_pos_enc = _generate_fourier_features(pos, num_bands=self.num_bands, max_resolution=self.max_resolution) |
| 36 | return fourier_pos_enc |
| 37 | |
| 38 | |
| 39 | def _generate_fourier_features(pos, num_bands, max_resolution): |
nothing calls this directly
no test coverage detected