mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-30 20:19:21 +00:00
fix pad
calls
This commit is contained in:
@ -244,7 +244,7 @@ declare_types! {
|
||||
let mut this = cx.this();
|
||||
let guard = cx.lock();
|
||||
this.borrow_mut(&guard).encoding.execute_mut(|encoding| {
|
||||
encoding.unwrap().pad(length, pad_id, pad_type_id, &pad_token, &direction);
|
||||
encoding.unwrap().pad(length, pad_id, pad_type_id, &pad_token, direction);
|
||||
});
|
||||
|
||||
Ok(cx.undefined().upcast())
|
||||
|
@ -253,7 +253,7 @@ impl Encoding {
|
||||
|
||||
Ok(self
|
||||
.encoding
|
||||
.pad(length, pad_id, pad_type_id, pad_token, &direction))
|
||||
.pad(length, pad_id, pad_type_id, pad_token, direction))
|
||||
}
|
||||
|
||||
#[args(kwargs = "**")]
|
||||
|
Reference in New Issue
Block a user