mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-06-27 18:06:19 +08:00
make pin_memory True by default
This commit is contained in:
@@ -117,6 +117,7 @@ class PyTorchEstimator(Estimator):
|
||||
batch_size=self.trainer.batch_size,
|
||||
num_workers=num_workers,
|
||||
prefetch_factor=prefetch_factor,
|
||||
pin_memory=True,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -136,6 +137,7 @@ class PyTorchEstimator(Estimator):
|
||||
batch_size=self.trainer.batch_size,
|
||||
num_workers=num_workers,
|
||||
prefetch_factor=prefetch_factor,
|
||||
pin_memory=True,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user