Skip to content

Commit 5f551c2

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 92ddd84 commit 5f551c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

batchflow/models/torch/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def _parse_devices(self):
633633
if device not in self.devices[:i]]
634634
self.device = self.devices[0]
635635

636-
if self.device.type != 'cuda':
636+
if self.device.type == 'cpu':
637637
#TODO: maybe, we should add warning
638638
self.amp = False
639639
if torch.cuda.is_available():

0 commit comments

Comments
 (0)