Remove Send + Sync requirements from Model.

This commit is contained in:
Sebastian Puetz
2020-07-31 17:16:04 +02:00
committed by Anthony MOI
parent 42b810488f
commit aaf8e932b1
3 changed files with 20 additions and 11 deletions

View File

@ -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)
}