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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy