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

[Chunk Teacher] hidden arg to prevent auto enqueueing #2993

Merged
merged 1 commit into from
Aug 19, 2020
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
3 changes: 2 additions & 1 deletion parlai/core/teachers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2130,7 +2130,8 @@ def __init__(self, opt, shared=None):
self._enqueue_chunks()
# launch queue loader on the main thread
self.tot_samples_loaded = 0
self._enqueue_request()
if not opt.get("no_auto_enqueues", False):
self._enqueue_request()

self._episode_done = True
self.last_queue_output = None
Expand Down