We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a6978b commit a997600Copy full SHA for a997600
intermediate_source/ensembling.py
@@ -50,7 +50,7 @@ def forward(self, x):
50
# minibatch of size 64. Furthermore, lets say we want to combine the predictions
51
# from 10 different models.
52
53
-device = 'cuda'
+device = torch.accelerator.current_accelerator()
54
num_models = 10
55
56
data = torch.randn(100, 64, 1, 28, 28, device=device)
0 commit comments