set process name on local machine
(config, tag_base)
| 250 | |
| 251 | |
| 252 | def _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 | |
| 263 | if __name__ == "__main__": |