MCPcopy Create free account
hub / github.com/MotrixLab/ADHMR / with_pos_embed

Method with_pos_embed

ADHMR/lib/models/hyponet.py:306–307  ·  view source on GitHub ↗
(self, tensor, pos)

Source from the content-addressed store, hash-verified

304 self.activation = nn.ReLU()
305
306 def with_pos_embed(self, tensor, pos):
307 return tensor + pos
308
309 def forward(self, tgt, memory, mask= None, mask_ctx = None, pos= None, pos_ctx=None, gen_multi=False):
310 tgt2 = self.norm1(tgt)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected