Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modelscope/modelscope
/ encoder
Method
encoder
modelscope/models/nlp/task_models/task_model.py:570–573 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
568
569
@property
570
def
encoder(self):
571
if
'encoder'
!= self.base_model_prefix:
572
return
getattr(self, self.base_model_prefix)
573
return
super().__getattr__(
'encoder'
)
574
575
@property
576
def
head(self):
Callers
15
encode_rgb
Method · 0.80
encode
Method · 0.80
encode_to_prequant
Method · 0.80
encode
Method · 0.80
encode
Method · 0.80
forward
Method · 0.80
forward
Method · 0.80
encode
Method · 0.80
encode_to_tokens
Method · 0.80
encode
Method · 0.80
forward
Method · 0.80
extract_feat
Method · 0.80
Calls
1
__getattr__
Method · 0.45
Tested by
no test coverage detected