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
OpenDAS
tilelang
Commits
6f6ef7ad
Unverified
Commit
6f6ef7ad
authored
Sep 26, 2025
by
LJC00118
Committed by
GitHub
Sep 26, 2025
Browse files
[Cython] Remove an incorrect check (#880)
parent
aa0b1090
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tilelang/jit/adapter/cython/cython_wrapper.pyx
tilelang/jit/adapter/cython/cython_wrapper.pyx
+2
-0
No files found.
tilelang/jit/adapter/cython/cython_wrapper.pyx
View file @
6f6ef7ad
...
...
@@ -197,12 +197,14 @@ cdef class CythonKernelWrapper:
tensor
=
inputs
[
ins_idx
]
ins_idx
+=
1
# TODO(chenggang): remove this check or rewrite by ourselves?
'''
if isinstance(tensor, torch.Tensor) and tensor._base is not None and not tensor.is_contiguous():
base_tensor = tensor._base.as_strided(tensor._base.shape, tensor.stride())
if torch._debug_has_internal_overlap(base_tensor):
raise ValueError(f"Cannot use an overlapping tensor"
f"(shape={tensor.shape}, strides={tensor.stride()}, "
f"overlap={torch._debug_has_internal_overlap(base_tensor)}) as the kernel input")
'''
tensor_list
.
append
(
tensor
)
# Convert tensor pointers to C void pointers for kernel call
...
...
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