mirror of
https://github.com/karpathy/nanochat.git
synced 2026-06-27 00:19:56 +00:00
rustbpe: Add Default impl for Tokenizer
This commit is contained in:
parent
8f979a8bda
commit
015ce712d7
|
|
@ -256,6 +256,12 @@ impl Tokenizer {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for Tokenizer {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
/// Public methods for the Tokenizer class that will be exposed to Python.
|
||||
#[pymethods]
|
||||
impl Tokenizer {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user