Commit 46e6342e authored by Rick Ho's avatar Rick Ho
Browse files

fix argument count bug in moe_test.py

parent 3501fa41
......@@ -159,7 +159,7 @@ def test_dp():
if __name__ == '__main__':
torch.distributed.init_process_group(backend='mpi')
world_size = torch.distributed.get_world_size()
if len(sys.argv) == 2:
if len(sys.argv) >= 2:
task = sys.argv[1]
print('Specificed task {}'.format(task))
if task == 'correctness':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment