Skip to content

Commit

Permalink
removed wrapper function
Browse files Browse the repository at this point in the history
  • Loading branch information
lezwon committed Aug 31, 2020
1 parent 944db7f commit 0cf6eaa
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pytorch_lightning/utilities/xla_device_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ def inner_f(queue, func, **kwargs):


def pl_multi_process(func):
def wrapper(*args, **kwargs):
queue = Queue()
proc = Process(target=inner_f, args=(queue, func,), kwargs=kwargs)
proc.start()
proc.join()
return queue.get()

return wrapper
queue = Queue()
proc = Process(target=inner_f, args=(queue, func,))
proc.start()
proc.join()
return queue.get()


def fetch_xla_device_type(device):
Expand Down

0 comments on commit 0cf6eaa

Please sign in to comment.