Skip to content

Commit

Permalink
Forgot to initialize shared in parent class of RepeatTeacher which in…
Browse files Browse the repository at this point in the history
…troduced bug that we were seeing when batch size > 0
  • Loading branch information
Emily Dinan committed Dec 21, 2017
1 parent 50001aa commit 5fd8c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tasks/repeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, opt, shared=None):
opt['datafile'] = 'unused_path'
task = opt.get('task', 'tests.tasks.repeat:RepeatTeacher:50')
self.data_length = int(task.split(':')[2])
super().__init__(opt)
super().__init__(opt, shared)

def setup_data(self, unused_path):
for i in range(self.data_length):
Expand Down

0 comments on commit 5fd8c1c

Please sign in to comment.