mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-08-12 12:20:53 +08:00
use device
This commit is contained in:
@@ -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