Skip to content

Commit

Permalink
Update run_workflow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
orisenbazuru authored Jun 10, 2021
1 parent 343e2e7 commit 66b4983
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ddi/run_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,11 +718,18 @@ def test_run(datatensor_partitions,
else:
print('WARNING: train dir not found: {}'.format(path))

def train_test_partition(datatensor_partition, config_map, tr_val_dir, fold_gpu_map):
# def train_test_partition(datatensor_partition, config_map, tr_val_dir, fold_gpu_map):
# config_epochs = config_map[0]['model_config'].num_epochs
# print(config_epochs)
# train_val_run(datatensor_partition, config_map, tr_val_dir, fold_gpu_map, num_epochs=config_epochs)
# test_run(datatensor_partition, config_map, tr_val_dir, tr_val_dir, fold_gpu_map, num_epochs=1)

def train_test_partition(gpu_num, datatensor_partition, config_map, tr_val_dir, fold_gpu_map, queue):
config_epochs = config_map[0]['model_config'].num_epochs
print(config_epochs)
train_val_run(datatensor_partition, config_map, tr_val_dir, fold_gpu_map, num_epochs=config_epochs)
test_run(datatensor_partition, config_map, tr_val_dir, tr_val_dir, fold_gpu_map, num_epochs=1)
queue.put(gpu_num)

def test_partition(datatensor_partition, config_map, tr_val_dir, fold_gpu_map, suffix_testfname):
config_epochs = config_map[0]['model_config'].num_epochs
Expand Down

0 comments on commit 66b4983

Please sign in to comment.