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

Method with_pos_embed

HMR-Scorer/common/nets/scorernet.py:98–99  ·  view source on GitHub ↗
(self, tensor, pos)

Source from the content-addressed store, hash-verified

96 self.activation = nn.ReLU()
97
98 def with_pos_embed(self, tensor, pos):
99 return tensor + pos
100
101 def forward(self, tgt, memory, mask=None, mask_ctx=None, pos=None, pos_ctx=None):
102 tgt2 = self.norm1(tgt)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected