mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 12:50:06 +06:00
Fixes: Corrects file path for CUDA kernels (#37438)
Corrects the file path used to locate the CUDA kernels for the Deformable Attention module. This ensures that the kernels are loaded correctly, resolving potential errors during module initialization and usage.
This commit is contained in:
parent
c7064cdba1
commit
931126b929
@ -57,7 +57,7 @@ def load_cuda_kernels():
|
||||
|
||||
global MultiScaleDeformableAttention
|
||||
|
||||
root = Path(__file__).resolve().parent.parent.parent / "kernels" / "deta"
|
||||
root = Path(__file__).resolve().parent.parent.parent.parent / "kernels" / "deta"
|
||||
src_files = [
|
||||
root / filename
|
||||
for filename in [
|
||||
|
Loading…
Reference in New Issue
Block a user