MCPcopy Create free account
hub / github.com/SooLab/CGFormer / with_pe

Method with_pe

model/layers.py:270–271  ·  view source on GitHub ↗
(self, vis, pe)

Source from the content-addressed store, hash-verified

268 self.tau = nn.Parameter(torch.ones(1), requires_grad=True)
269
270 def with_pe(self, vis, pe):
271 return vis + pe
272
273 def forward(self, tokens, vis, pe=None):
274 b, c, h , w = vis.shape

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected