diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-12 20:23:40 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-12 20:23:40 +0800 |
commit | 4495e10e5159ee54814e73ae7bfb27db2754ae69 (patch) | |
tree | ac2bd997784229d58b72188dfa32d1c1edd0aa57 /config.py | |
parent | 0c027822a48440be59f9b4889831af7879ecf277 (diff) |
Add Google TPU support
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,9 +1,7 @@ config = { 'system': { - # Disable accelerator - 'disable_acc': False, - # GPU(s) used in training or testing if available - 'CUDA_VISIBLE_DEVICES': '0', + # The number of processes for the replication + 'nprocs': 8, # Directory used in training or testing for temporary storage 'save_dir': 'runs', }, @@ -28,10 +26,10 @@ config = { }, # Dataloader settings 'dataloader': { - # Batch size (pr, k) + # Batch size (pr, k) * `nprocs` # `pr` denotes number of persons # `k` denotes number of sequences per person - 'batch_size': (8, 16), + 'batch_size': (3, 6), # Number of workers of Dataloader 'num_workers': 4, # Faster data transfer from RAM to GPU if enabled |