Skip to content

Commit df3a549

Browse files
committed
Removing unecessary code that transforms to cpu, while it is on cpu
1 parent ac8a0c6 commit df3a549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoPyTorch/pipeline/components/setup/network/base_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def predict(self, loader: torch.utils.data.DataLoader) -> torch.Tensor:
113113
"""
114114
if len(self.network_snapshots) == 0:
115115
assert self.network is not None
116-
return self._predict(network=self.network, loader=loader).cpu().numpy()
116+
return self._predict(network=self.network, loader=loader).numpy()
117117
else:
118118
# if there are network snapshots,
119119
# take average of predictions of all snapshots

0 commit comments

Comments
 (0)