Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e90e122

Browse filesBrowse files
committed
Use clear
1 parent ac7068a commit e90e122
Copy full SHA for e90e122

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.