Source code for bitorch_engine.layers.qlinear.binary.cuda.extension
from pathlib import Path
from bitorch_engine.utils.cuda_extension import get_cuda_extension
CUDA_REQUIRED = True
[docs]
def get_ext(path: Path):
"""
Get the CUDA extension for binary linear operations.
Args:
path (Path): The path to the CUDA extension directory.
Returns:
Any: The CUDA extension module.
"""
return get_cuda_extension(
path,
relative_name='binary_linear_cuda',
relative_sources=[
'binary_linear_cuda.cpp',
'binary_linear_cuda_kernel.cu',
]
)