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

fix to seq2seq model #453

Merged
merged 3 commits into from
Dec 16, 2017
Merged

fix to seq2seq model #453

merged 3 commits into from
Dec 16, 2017

Conversation

alexholdenmiller
Copy link
Member

history was remembering the zero padding, so need to allocate new object when padding

@@ -421,8 +422,9 @@ def valid(obs):
y.extendleft(reversed(x))

max_y_len = max(len(y) for y in parsed_y)
for y in parsed_y:
y += [self.NULL_IDX] * (max_y_len - len(y))
parsed_y = [y if len(y) == max_y_len else
Copy link
Contributor

Choose a reason for hiding this comment

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

this is padding things? should be a utility or something?

Copy link
Member Author

Choose a reason for hiding this comment

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

you're right--this is padding. could be a utility but I'd like to land this first at least.

Copy link
Contributor

@jaseweston jaseweston left a comment

Choose a reason for hiding this comment

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

ok, just add a comment then please

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