Revert "Using serde (serde_pyo3) to get __str__ and __repr__ easily."

This reverts commit 86138337fc.
This commit is contained in:
Nicolas Patry
2024-08-02 18:42:57 +02:00
parent 86138337fc
commit a010f6b75c
8 changed files with 7 additions and 27 deletions

View File

@ -16,8 +16,8 @@ use tokenizers as tk;
/// Trainer will return an instance of this class when instantiated.
#[pyclass(module = "tokenizers.trainers", name = "Trainer", subclass)]
#[derive(Clone, Deserialize, Serialize)]
#[serde(transparent)]
pub struct PyTrainer {
#[serde(flatten)]
pub trainer: Arc<RwLock<TrainerWrapper>>,
}