mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-10-04 13:00:46 +08:00
use device
This commit is contained in:
1 parent
7905888848
commit
78ebf59d15
1 file changed
+2
-2
@@ -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)
|
||||
Reference in new issue
Block a user