MCPcopy
hub / github.com/PaddlePaddle/PaddleFormers / get

Method get

paddleformers/transformers/auto/factory.py:98–102  ·  view source on GitHub ↗
(self, key, default)

Source from the content-addressed store, hash-verified

96 return mapping_keys + list(self._extra_content.keys())
97
98 def get(self, key, default):
99 try:
100 return self.__getitem__(key)
101 except KeyError:
102 return default
103
104 def __bool__(self):
105 return bool(self.keys())

Callers 15

no_recomputeFunction · 0.45
standardize_rope_paramsFunction · 0.45
_compute_yarn_parametersFunction · 0.45
rope_config_validationFunction · 0.45
wrapperMethod · 0.45
__call__Method · 0.45
apply_chat_templateMethod · 0.45
from_pretrainedMethod · 0.45
save_pretrainedMethod · 0.45

Calls 1

__getitem__Method · 0.95

Tested by

no test coverage detected