use device

This commit is contained in:
Kashif Rasul
2019-12-01 10:07:00 +01:00
parent 7905888848
commit 78ebf59d15
+2 -2
View File
@@ -151,7 +151,7 @@ class DeepAREstimator(PTSEstimator):
),
])
def create_training_network(self) -> DeepARTrainingNetwork:
def create_training_network(self, device: torch.device) -> DeepARTrainingNetwork:
return DeepARTrainingNetwork(
num_layers=self.num_layers,
num_cells=self.num_cells,
@@ -166,4 +166,4 @@ class DeepAREstimator(PTSEstimator):
lags_seq=self.lags_seq,
scaling=self.scaling,
dtype=self.dtype,
)
).to(device)