Instructions to use replicate/relu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/relu with Kernels:
# !pip install kernels from kernels import get_kernel # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("replicate/relu", version=1) - Notebooks
- Google Colab
- Kaggle
Download build/torch-ext/torch_binding.h from replicate/relu: direct link, hf CLI and curl.
- Browser
- Download file 98 Bytes
-
https://huggingface.co/replicate/relu/resolve/main/build/torch-ext/torch_binding.h
- Command line
-
hf download hf://replicate/relu/build/torch-ext/torch_binding.h
-
curl -L -o torch_binding.h https://huggingface.co/replicate/relu/resolve/main/build/torch-ext/torch_binding.h
98 Bytes
| void relu(torch::Tensor &out, torch::Tensor const &input); |