Remove redundant fn
This commit is contained in:
parent
3b41f16596
commit
6d2f74efb3
@ -5,16 +5,9 @@ void copy_blocks(
|
||||
torch::Tensor& dst,
|
||||
const std::map<int64_t, int64_t>& block_mapping);
|
||||
|
||||
void copy_cache_blocks(
|
||||
torch::Tensor& src,
|
||||
torch::Tensor& dst,
|
||||
const std::map<int64_t, int64_t>& block_mapping) {
|
||||
copy_blocks(src, dst, block_mapping);
|
||||
}
|
||||
|
||||
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
|
||||
m.def(
|
||||
"copy_cache_blocks",
|
||||
©_cache_blocks,
|
||||
©_blocks,
|
||||
"Copy the cache blocks from src to dst");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user