MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / forward

Method forward

main_selfpatch.py:146–149  ·  view source on GitHub ↗
(self, x, head_only=False, loc=True)

Source from the content-addressed store, hash-verified

144 self.p_head = p_head
145
146 def forward(self, x, head_only=False, loc=True):
147 output = self.backbone(x)
148 logits = self.ca_head(output, loc)
149 return [self.c_head(logits[:,:1]), self.p_head(logits[:,1:])]
150
151def train_dino(args):
152 # os.environ['MASTER_PORT'] = '30000'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected