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

Method forward

semantic_sam/backbone/backbone.py:22–29  ·  view source on GitHub ↗

Subclasses must override this method, but adhere to the same return type. Returns: dict[str->Tensor]: mapping from feature name (e.g., "res2") to tensor

(self)

Source from the content-addressed store, hash-verified

20 super().__init__()
21
22 def forward(self):
23 """
24 Subclasses must override this method, but adhere to the same return type.
25
26 Returns:
27 dict[str->Tensor]: mapping from feature name (e.g., "res2") to tensor
28 """
29 pass
30
31 @property
32 def size_divisibility(self) -> int:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected