Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiiny-AI/PowerInfer
/ clear
Method
clear
smallthinker/common/sampling.cpp:81–86 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
79
}
80
81
void clear() {
82
// here only reset the status of the buffer
83
sz = 0;
84
first = 0;
85
pos = 0;
86
}
87
88
bool empty() const {
89
return sz == 0;
Callers
8
_visit_pattern
Method · 0.45
common_speculative_gen_draft
Function · 0.45
common_params_parser_init
Function · 0.45
common_init_from_params
Function · 0.45
common_control_vector_load_one
Function · 0.45
common_control_vector_load
Function · 0.45
readline_advanced
Function · 0.45
readline_simple
Function · 0.45
Calls
no outgoing calls
Tested by
1
common_speculative_gen_draft
Function · 0.36