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
Build uploaded using `kernels`.
Browse files- .gitattributes +1 -0
- build/torch29-cxx11-cu126-x86_64-linux/relu/__init__.py +1 -1
- build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/__init__.cpython-313.pyc +0 -0
- build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/_ops.cpython-313.pyc +0 -0
- build/torch29-cxx11-cu126-x86_64-linux/relu/_ops.py +3 -3
- build/torch29-cxx11-cu126-x86_64-linux/relu/{_relu_8d21eda.abi3.so → _relu_e52ac39.abi3.so} +2 -2
.gitattributes
CHANGED
|
@@ -69,3 +69,4 @@ build/torch29-cxx11-cu130-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs dif
|
|
| 69 |
build/torch29-cxx11-rocm63-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 70 |
build/torch29-cxx11-rocm64-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 71 |
build/torch29-cxx11-xpu20252-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 69 |
build/torch29-cxx11-rocm63-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 70 |
build/torch29-cxx11-rocm64-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 71 |
build/torch29-cxx11-xpu20252-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
build/torch29-cxx11-cu126-x86_64-linux/relu/_relu_e52ac39.abi3.so filter=lfs diff=lfs merge=lfs -text
|
build/torch29-cxx11-cu126-x86_64-linux/relu/__init__.py
CHANGED
|
@@ -9,4 +9,4 @@ def relu(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor:
|
|
| 9 |
if out is None:
|
| 10 |
out = torch.empty_like(x)
|
| 11 |
ops.relu(out, x)
|
| 12 |
-
return out
|
|
|
|
| 9 |
if out is None:
|
| 10 |
out = torch.empty_like(x)
|
| 11 |
ops.relu(out, x)
|
| 12 |
+
return out
|
build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/__init__.cpython-313.pyc
CHANGED
|
Binary files a/build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/__init__.cpython-313.pyc and b/build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/__init__.cpython-313.pyc differ
|
|
|
build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/_ops.cpython-313.pyc
CHANGED
|
Binary files a/build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/_ops.cpython-313.pyc and b/build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/_ops.cpython-313.pyc differ
|
|
|
build/torch29-cxx11-cu126-x86_64-linux/relu/_ops.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
-
from . import
|
| 3 |
-
ops = torch.ops.
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
-
return f"
|
|
|
|
| 1 |
import torch
|
| 2 |
+
from . import _relu_e52ac39
|
| 3 |
+
ops = torch.ops._relu_e52ac39
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_e52ac39::{op_name}"
|
build/torch29-cxx11-cu126-x86_64-linux/relu/{_relu_8d21eda.abi3.so → _relu_e52ac39.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1be76e9802d0db07f1203ea613f82d3479f9bc1f1b6fc5f523b059ca3685836e
|
| 3 |
+
size 1977272
|