Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
74b5267d
Unverified
Commit
74b5267d
authored
Nov 15, 2025
by
Jane (Yuan) Xu
Committed by
GitHub
Nov 15, 2025
Browse files
Use narrow over indexing in `hadacore_transform` to prep for ABI stable (#28756)
Signed-off-by:
Jane Xu
<
janeyx@meta.com
>
parent
dd6ac1c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/quantization/hadamard/hadacore/hadamard_transform_cuda.cu
...quantization/hadamard/hadacore/hadamard_transform_cuda.cu
+1
-1
No files found.
csrc/quantization/hadamard/hadacore/hadamard_transform_cuda.cu
View file @
74b5267d
...
...
@@ -802,7 +802,7 @@ torch::Tensor hadacore_transform(torch::Tensor& x, bool inplace) {
});
if
(
numel
%
256
!=
0
)
{
out
=
out
.
index
({
torch
::
indexing
::
Slice
(
0
,
numel
/
had_size
)
})
;
out
=
out
.
narrow
(
0
,
0
,
numel
/
had_size
);
}
if
(
inplace
&&
out
.
data_ptr
()
!=
x
.
data_ptr
())
{
...
...
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