Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
6d2f74ef
Commit
6d2f74ef
authored
Feb 16, 2023
by
Woosuk Kwon
Browse files
Remove redundant fn
parent
3b41f165
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
csrc/cache.cpp
csrc/cache.cpp
+1
-8
No files found.
csrc/cache.cpp
View file @
6d2f74ef
...
@@ -5,16 +5,9 @@ void copy_blocks(
...
@@ -5,16 +5,9 @@ void copy_blocks(
torch
::
Tensor
&
dst
,
torch
::
Tensor
&
dst
,
const
std
::
map
<
int64_t
,
int64_t
>&
block_mapping
);
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
)
{
PYBIND11_MODULE
(
TORCH_EXTENSION_NAME
,
m
)
{
m
.
def
(
m
.
def
(
"copy_cache_blocks"
,
"copy_cache_blocks"
,
&
copy_
cache_
blocks
,
&
copy_blocks
,
"Copy the cache blocks from src to dst"
);
"Copy the cache blocks from src to dst"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment