MCPcopy Create free account
hub / github.com/modelscope/modelscope / head

Method head

modelscope/models/nlp/task_models/task_model.py:576–579  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

574
575 @property
576 def head(self):
577 if 'head' != self.head_prefix:
578 return getattr(self, self.head_prefix)
579 return super().__getattr__('head')
580
581 def extract_feature(self, **input: Dict[str, Any]) -> Dict[str, Any]:
582 """default forward method is the backbone-only forward"""

Callers 15

forwardMethod · 0.45
forwardMethod · 0.45
queryMethod · 0.45
query_rgbMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45

Calls 1

__getattr__Method · 0.45

Tested by

no test coverage detected