Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_helper_process_request(self) -> HelperProcessRequest:
from multiprocessing import Pipe
file = os.path.realpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'torch_manager.py'))
key = 'hive_mind'
request = HelperProcessRequest(file, key)
self.pipe, request.pipe = Pipe(False)
return request
def get_helper_process_request(self) -> HelperProcessRequest:
from multiprocessing import Pipe
file = os.path.realpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'hive_manager.py'))
key = 'saltie_hive_mind'
request = HelperProcessRequest(file, key)
self.pipe, request.pipe = Pipe(False)
return request
def get_helper_process_request(self) -> HelperProcessRequest:
from multiprocessing import Pipe
file = self.get_manager_path()
key = 'swarm_manager'
request = HelperProcessRequest(file, key)
self.pipe, request.pipe = Pipe(False)
return request