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

Method append

paddleformers/utils/log.py:161–168  ·  view source on GitHub ↗

Append a JSON object to the queue for background writing. :param data: The JSON object to append.

(self, data)

Source from the content-addressed store, hash-verified

159 atexit.register(self.close)
160
161 def append(self, data):
162 """
163 Append a JSON object to the queue for background writing.
164
165 :param data: The JSON object to append.
166 """
167 data.update({"metrics_dumper_pid": self.pid, "metrics_dumper_timestamp": int(time.time() * 1000)})
168 self.queue.put(data)
169
170 def _write_json(self, queue):
171 """

Callers 15

get_package_data_filesFunction · 0.45
find_dead_linksFunction · 0.45
run_exportMethod · 0.45
_run_generation_testMethod · 0.45
save_yamlFunction · 0.45
check_approvalFunction · 0.45
get_cluster_from_argsFunction · 0.45
start_local_trainers_cpuFunction · 0.45
start_local_trainersFunction · 0.45
construct_argvFunction · 0.45

Calls 2

updateMethod · 0.45
putMethod · 0.45

Tested by 15

run_exportMethod · 0.36
_run_generation_testMethod · 0.36
construct_argvFunction · 0.36
ids_tensorFunction · 0.36
ids_tensorFunction · 0.36
get_cluster_from_argsFunction · 0.36
start_local_trainers_cpuFunction · 0.36
start_local_trainersFunction · 0.36
prepare_image_inputsFunction · 0.36
prepare_videoFunction · 0.36