MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / update

Method update

fastdeploy/worker/input_batch.py:41–44  ·  view source on GitHub ↗

Batch update attributes, similar to dict's update method

(self, values: dict)

Source from the content-addressed store, hash-verified

39 return hasattr(self, key)
40
41 def update(self, values: dict):
42 """Batch update attributes, similar to dict's update method"""
43 for key, value in values.items():
44 setattr(self, key, value)
45
46 def pop(self, key, default=None):
47 """

Callers 15

download_fileFunction · 0.45
extract_tarFunction · 0.45
get_vocabMethod · 0.45
parse_quant_configFunction · 0.45
__init__.pyFile · 0.45
__init_subclass__Method · 0.45
_get_tp_planMethod · 0.45
to_dictMethod · 0.45

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected