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

[TGA] Beam context block bug #3669

Merged
merged 4 commits into from
May 25, 2021
Merged

[TGA] Beam context block bug #3669

merged 4 commits into from
May 25, 2021

Conversation

emilydinan
Copy link
Contributor

@emilydinan emilydinan commented May 25, 2021

Patch description
Hit a bug with beam blocking in TGA. TGA has beam_block_full_context set to True by default, which requires the batch to have a full_text_vec. I have beam context blocking off, and am passing a cached text vec in the observation to avoid re-tokenization (which means full_text_vec never gets set) and hit this error. To remedy, I return an empty tensor when beam_context_blocking is turned off.

@emilydinan emilydinan changed the title Beam block [TGA] Beam context block bug May 25, 2021
Copy link
Contributor

@stephenroller stephenroller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let all tests pass but then okay

@emilydinan emilydinan merged commit ef3ad55 into master May 25, 2021
@emilydinan emilydinan deleted the beam_block branch May 25, 2021 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants