Use clear
This commit is contained in:
parent
ac7068a469
commit
e90e122f2a
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ class Llama:
|
|||
self.tokens.clear()
|
||||
self.n_tokens = 0
|
||||
self.n_past = 0
|
||||
self.all_logits = []
|
||||
self.all_logits.clear()
|
||||
|
||||
def eval(self, tokens: Sequence[llama_cpp.llama_token]):
|
||||
"""Evaluate a list of tokens.
|
||||
|
|
Loading…
Reference in a new issue