Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Mar 29, 2021
1 parent 4509771 commit d178e1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytorch_lightning/utilities/xla_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import queue as q
import traceback
from multiprocessing import Process, Queue
from typing import Optional

import torch.multiprocessing as mp

Expand Down Expand Up @@ -71,7 +70,7 @@ def _is_device_tpu() -> bool:
A boolean value indicating if the xla device is a TPU device or not
"""

def _fn(process_idx: int, mp_queue):
def _fn(_: int, mp_queue):
try:
device = xm.xla_device()
mp_queue.put(device.type == 'xla')
Expand Down

0 comments on commit d178e1d

Please sign in to comment.