Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
- another python 3.7 annoyance
Browse files Browse the repository at this point in the history
  • Loading branch information
nasimrahaman committed Oct 7, 2018
1 parent 0934395 commit 80b6dea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inferno/extensions/layers/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def __init__(self, target_device, device_ordinal=None, asynchronous=False):

def forward(self, *inputs):
if self.target_device == 'cuda':
transferred = tuple(input_.cuda(device_id=self.device_ordinal, async=self.asynchronous)
# FIXME Removed async support for compatibility with python 3.7.
transferred = tuple(input_.cuda(device_id=self.device_ordinal)
for input_ in inputs)
elif self.target_device == 'cpu':
transferred = tuple(input_.cpu() for input_ in inputs)
Expand Down

0 comments on commit 80b6dea

Please sign in to comment.