10000 Use clear · coderonion/llama-cpp-python@e90e122 · GitHub
[go: up one dir, main page]

Skip to content

Commit e90e122

Browse files
committed
Use clear
1 parent ac7068a commit e90e122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def reset(self):
144144
self.tokens.clear()
145145
self.n_tokens = 0
146146
self.n_past = 0
147-
self.all_logits = []
147+
self.all_logits.clear()
148148

149149
def eval(self, tokens: Sequence[llama_cpp.llama_token]):
150150
"""Evaluate a list of tokens.

0 commit comments

Comments
 (0)
0