-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tokenizer] Enable padding_side as call time kwargs #9161
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9161 +/- ##
===========================================
- Coverage 53.26% 53.26% -0.01%
===========================================
Files 652 652
Lines 105607 105618 +11
===========================================
+ Hits 56254 56257 +3
- Misses 49353 49361 +8 ☔ View full report in Codecov by Sentry. |
@@ -3186,8 +3222,9 @@ def _pad( | |||
|
|||
if needs_to_be_padded: | |||
difference = max_length - len(required_input) | |||
padding_side = padding_side if padding_side is not None else self.padding_side |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最新调用方式看这里,self和传入参数二选一。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lvdongyi 非修改意见
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Function optimization
PR changes
APIs
Description
Enable padding_side as call time kwargs.