mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 16:49:27 +00:00
Remove Send + Sync requirements from Model.
This commit is contained in:
committed by
Anthony MOI
parent
42b810488f
commit
aaf8e932b1
@ -318,7 +318,7 @@ impl PyTokenizer {
|
||||
}
|
||||
|
||||
fn __getnewargs__<'p>(&self, py: Python<'p>) -> PyResult<&'p PyTuple> {
|
||||
let model: PyObject = PyModel::new(Arc::new(BPE::default())).into_py(py);
|
||||
let model: PyObject = PyModel::new(Arc::new(BPE::default().into())).into_py(py);
|
||||
let args = PyTuple::new(py, vec![model]);
|
||||
Ok(args)
|
||||
}
|
||||
|
Reference in New Issue
Block a user