MCPcopy Index your code
hub / github.com/ActiveVisionLab/DFNet / embed

Method embed

script/models/nerfw.py:128–133  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

126 self.out_dim = out_dim
127
128 def embed(self, inputs):
129 if self.kwargs['max_freq_log2'] != 0:
130 ret = torch.cat([fn(inputs) for fn in self.embed_fns], -1) # cos, sin embedding
131 else:
132 ret = inputs
133 return ret
134
135 def get_embed_weight(self, epoch, num_freqs, N):
136 ''' Nerfie Paper Eq.(8) '''

Callers 1

get_embedderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected