Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Make sure RepeatTeacher doesn't leak files. #1225

Merged
merged 1 commit into from
Oct 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/tasks/repeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ def __init__(self, opt, shared=None):
def setup_data(self, unused_path):
for i in range(self.data_length):
yield ((str(i), [str(i)]), True)

def num_examples(self):
return self.data_length

def num_episodes(self):
return self.data_length