You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
452B

  1. # -*- coding: utf-8 -*-
  2. import os
  3. import sys
  4. from service import Dispatcher
  5. import torch
  6. '''
  7. dsp主程序入口
  8. '''
  9. if __name__ == '__main__':
  10. print("(♥◠‿◠)ノ゙ DSP【算法调度服务】开始启动 ლ(´ڡ`ლ)゙")
  11. # 获取主程序执行根路径
  12. base_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
  13. torch.multiprocessing.set_start_method('spawn')
  14. Dispatcher.DispatcherService(base_dir).start_service()