MCPcopy Index your code
hub / github.com/PaddlePaddle/FastDeploy / get

Method get

fastdeploy/engine/request.py:491–497  ·  view source on GitHub ↗
(self, key: str, default_value=None)

Source from the content-addressed store, hash-verified

489 return data
490
491 def get(self, key: str, default_value=None):
492 if hasattr(self, key):
493 return getattr(self, key)
494 elif hasattr(self.sampling_params, key):
495 return getattr(self.sampling_params, key)
496 else:
497 return default_value
498
499 def set(self, key, value):
500 if hasattr(self.sampling_params, key):

Callers 15

test_get_methodMethod · 0.95
build_extensionMethod · 0.45
setup.pyFile · 0.45
__init__Method · 0.45
__init__Method · 0.45
get_max_chunk_tokensMethod · 0.45
formatMethod · 0.45
download_fileFunction · 0.45
current_package_versionFunction · 0.45
to_numpyFunction · 0.45
to_tensorFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_get_methodMethod · 0.76