Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ reset_cache
Function
reset_cache
csrc/transformer/inference/csrc/pt_binding.cpp:437–437 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
435
}
436
437
void reset_cache() { InferenceContext::Instance().reset_tokens(); }
438
439
template <typename T>
440
std::vector<at::Tensor> ds_softmax_context(at::Tensor& query_key_value,
Callers
nothing calls this directly
Calls
1
reset_tokens
Method · 0.45
Tested by
no test coverage detected