Skip to content

Commit

Permalink
Less verbose messaging when using MultiWorld. (facebookresearch#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenroller authored Jul 26, 2018
1 parent 79e4512 commit e6a8040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parlai/core/worlds.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,14 @@ class MultiWorld(World):
"""

def __init__(self, opt, agents=None, shared=None, default_world=None):
if opt.get('batch_sort'):
print('WARNING: batch_sort disabled for multitasking')
opt['batch_sort'] = False
print('WARNING: batch_sort disabled for multitasking')
super().__init__(opt)
self.worlds = []
for index, k in enumerate(opt['task'].split(',')):
k = k.strip()
if k:
print("[creating world: " + k + "]")
opt_singletask = copy.deepcopy(opt)
opt_singletask['task'] = k
if shared:
Expand Down

0 comments on commit e6a8040

Please sign in to comment.