Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiiny-AI/PowerInfer
/ clear
Method
clear
smallthinker/src/llama-sampling.cpp:108–113 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
106
}
107
108
void clear() {
109
// here only reset the status of the buffer
110
sz = 0;
111
first = 0;
112
pos = 0;
113
}
114
115
bool empty() const {
116
return sz == 0;
Callers
5
llama_sampler_penalties_reset
Function · 0.45
llama_sampler_dry_apply
Function · 0.45
llama_sampler_dry_reset
Function · 0.45
llama_sampler_init_dry_testing
Function · 0.45
llama_sampler_logit_bias_apply
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected