mirror of
https://github.com/huggingface/candle.git
synced 2025-06-19 19:58:35 +00:00
Avoid some redundant clone. (#731)
This commit is contained in:
@ -80,7 +80,7 @@ impl Model {
|
||||
let tokens = self
|
||||
.inner
|
||||
.tokenizer
|
||||
.encode(prompt.to_string(), true)
|
||||
.encode(prompt, true)
|
||||
.map_err(|m| JsError::new(&m.to_string()))?
|
||||
.get_ids()
|
||||
.to_vec();
|
||||
|
Reference in New Issue
Block a user