MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / forward

Method forward

semantic_sam/BaseModel.py:18–20  ·  view source on GitHub ↗
(self, *inputs, **kwargs)

Source from the content-addressed store, hash-verified

16 self.model = module
17
18 def forward(self, *inputs, **kwargs):
19 outputs = self.model(*inputs, **kwargs)
20 return outputs
21
22 def save_pretrained(self, save_path):
23 torch.save(self.model.state_dict(), save_path)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected