MCPcopy 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_rgbMethod · 0.80
encodeMethod · 0.80
encode_to_prequantMethod · 0.80
encodeMethod · 0.80
encodeMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
encodeMethod · 0.80
encode_to_tokensMethod · 0.80
encodeMethod · 0.80
forwardMethod · 0.80
extract_featMethod · 0.80

Calls 1

__getattr__Method · 0.45

Tested by

no test coverage detected