MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / _set_proc_name

Function _set_proc_name

NLP/Text2SQL-BASELINE/script/text2sql_main.py:252–260  ·  view source on GitHub ↗

set process name on local machine

(config, tag_base)

Source from the content-addressed store, hash-verified

250
251
252def _set_proc_name(config, tag_base):
253 """set process name on local machine
254 """
255 if config.general.is_cloud:
256 return
257 if tag_base.startswith('train'):
258 tag_base = 'train'
259 import setproctitle
260 setproctitle.setproctitle(tag_base + '_' + config.data.output.rstrip('/').split('/')[-1])
261
262
263if __name__ == "__main__":

Callers 1

text2sql_main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected