Instructions to use kernels-community/relu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/relu with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("kernels-community/relu") - Notebooks
- Google Colab
- Kaggle
| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| ops.def("relu(Tensor! out, Tensor input) -> ()"); | |
| ops.impl("relu", torch::kCUDA, &relu); | |
| ops.impl("relu", torch::kMPS, relu); | |
| ops.impl("relu", torch::kXPU, &relu); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) |