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

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dexterju27 committed Mar 6, 2021
1 parent d8c1397 commit 767ad3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parlai/core/torch_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,9 @@ def _vectorize_text(
Truncate from the left side (keep the rightmost tokens). You
probably want this True for inputs, False for targets.
"""
return self._vectorize_text_with_truncate_stats(**locals())[0]
return self._vectorize_text_with_truncate_stats(
text, add_start, add_end, truncate, truncate_left
)[0]

def _check_truncate(self, vec, truncate, truncate_left=False):
"""
Expand Down

0 comments on commit 767ad3d

Please sign in to comment.