def opts(cls, threads=2): opts = c10d.ProcessGroupGloo._Options() opts._timeout = 5.0 opts._devices = [create_device(interface='lo')] opts._threads = threads return opts
def opts(self, threads=2, timeout=10.0): opts = c10d.ProcessGroupGloo._Options() opts._timeout = timeout opts._devices = [create_device(interface=LOOPBACK)] opts._threads = threads return opts