summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-01-12 20:23:40 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-01-12 20:23:40 +0800
commit4495e10e5159ee54814e73ae7bfb27db2754ae69 (patch)
treeac2bd997784229d58b72188dfa32d1c1edd0aa57 /config.py
parent0c027822a48440be59f9b4889831af7879ecf277 (diff)
Add Google TPU support
Diffstat (limited to 'config.py')
-rw-r--r--config.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/config.py b/config.py
index cd36cc5..19cd6f8 100644
--- a/config.py
+++ b/config.py
@@ -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