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
Uploaded using `kernel-builder`.
Browse files- .gitattributes +2 -0
- build/torch210-cpu-aarch64-darwin/_ops.py +3 -3
- build/torch210-cpu-aarch64-darwin/{_relu_cpu_eb7c305.abi3.so → _relu_cpu_eea2e23.abi3.so} +0 -0
- build/torch210-cpu-aarch64-darwin/metadata.json +3 -1
- build/torch210-metal-aarch64-darwin/_ops.py +3 -3
- build/torch210-metal-aarch64-darwin/{_relu_metal_eb7c305.abi3.so → _relu_metal_eea2e23.abi3.so} +1 -1
- build/torch210-metal-aarch64-darwin/metadata.json +3 -1
- build/torch211-cpu-aarch64-darwin/_ops.py +3 -3
- build/torch211-cpu-aarch64-darwin/{_relu_cpu_eb7c305.abi3.so → _relu_cpu_eea2e23.abi3.so} +0 -0
- build/torch211-cpu-aarch64-darwin/metadata.json +3 -1
- build/torch211-metal-aarch64-darwin/_ops.py +3 -3
- build/torch211-metal-aarch64-darwin/{_relu_metal_eb7c305.abi3.so → _relu_metal_eea2e23.abi3.so} +1 -1
- build/torch211-metal-aarch64-darwin/metadata.json +3 -1
.gitattributes
CHANGED
|
@@ -515,3 +515,5 @@ build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_eea2e23.abi3.so filter=lfs di
|
|
| 515 |
build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_eea2e23.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 516 |
build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_eea2e23.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 517 |
build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_eea2e23.abi3.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 515 |
build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_eea2e23.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 516 |
build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_eea2e23.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 517 |
build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_eea2e23.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 518 |
+
build/torch210-metal-aarch64-darwin/_relu_metal_eea2e23.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 519 |
+
build/torch211-metal-aarch64-darwin/_relu_metal_eea2e23.abi3.so filter=lfs diff=lfs merge=lfs -text
|
build/torch210-cpu-aarch64-darwin/_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_cpu_eea2e23
|
| 3 |
+
ops = torch.ops._relu_cpu_eea2e23
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cpu_eea2e23::{op_name}"
|
build/torch210-cpu-aarch64-darwin/{_relu_cpu_eb7c305.abi3.so → _relu_cpu_eea2e23.abi3.so}
RENAMED
|
Binary files a/build/torch210-cpu-aarch64-darwin/_relu_cpu_eb7c305.abi3.so and b/build/torch210-cpu-aarch64-darwin/_relu_cpu_eea2e23.abi3.so differ
|
|
|
build/torch210-cpu-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
| 2 |
"version": 1,
|
| 3 |
"license": "Apache-2.0",
|
| 4 |
"python-depends": [],
|
| 5 |
"backend": {
|
| 6 |
"type": "cpu"
|
| 7 |
}
|
| 8 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"name": "relu",
|
| 3 |
+
"id": "_relu_cpu_eea2e23",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
| 7 |
"backend": {
|
| 8 |
"type": "cpu"
|
| 9 |
}
|
| 10 |
+
}
|
build/torch210-metal-aarch64-darwin/_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_metal_eea2e23
|
| 3 |
+
ops = torch.ops._relu_metal_eea2e23
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_metal_eea2e23::{op_name}"
|
build/torch210-metal-aarch64-darwin/{_relu_metal_eb7c305.abi3.so → _relu_metal_eea2e23.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 100920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:988430e8bae35de20f656139e6897e687990231e1e7a083a369971928e43264e
|
| 3 |
size 100920
|
build/torch210-metal-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
| 2 |
"version": 1,
|
| 3 |
"license": "Apache-2.0",
|
| 4 |
"python-depends": [],
|
| 5 |
"backend": {
|
| 6 |
"type": "metal"
|
| 7 |
}
|
| 8 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"name": "relu",
|
| 3 |
+
"id": "_relu_metal_eea2e23",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
| 7 |
"backend": {
|
| 8 |
"type": "metal"
|
| 9 |
}
|
| 10 |
+
}
|
build/torch211-cpu-aarch64-darwin/_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_cpu_eea2e23
|
| 3 |
+
ops = torch.ops._relu_cpu_eea2e23
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cpu_eea2e23::{op_name}"
|
build/torch211-cpu-aarch64-darwin/{_relu_cpu_eb7c305.abi3.so → _relu_cpu_eea2e23.abi3.so}
RENAMED
|
Binary files a/build/torch211-cpu-aarch64-darwin/_relu_cpu_eb7c305.abi3.so and b/build/torch211-cpu-aarch64-darwin/_relu_cpu_eea2e23.abi3.so differ
|
|
|
build/torch211-cpu-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
| 2 |
"version": 1,
|
| 3 |
"license": "Apache-2.0",
|
| 4 |
"python-depends": [],
|
| 5 |
"backend": {
|
| 6 |
"type": "cpu"
|
| 7 |
}
|
| 8 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"name": "relu",
|
| 3 |
+
"id": "_relu_cpu_eea2e23",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
| 7 |
"backend": {
|
| 8 |
"type": "cpu"
|
| 9 |
}
|
| 10 |
+
}
|
build/torch211-metal-aarch64-darwin/_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_metal_eea2e23
|
| 3 |
+
ops = torch.ops._relu_metal_eea2e23
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_metal_eea2e23::{op_name}"
|
build/torch211-metal-aarch64-darwin/{_relu_metal_eb7c305.abi3.so → _relu_metal_eea2e23.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 100920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:703d4b1bdea2397b91fc002800ce564c96862623f2082eb5696c084d91ab769c
|
| 3 |
size 100920
|
build/torch211-metal-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
| 2 |
"version": 1,
|
| 3 |
"license": "Apache-2.0",
|
| 4 |
"python-depends": [],
|
| 5 |
"backend": {
|
| 6 |
"type": "metal"
|
| 7 |
}
|
| 8 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"name": "relu",
|
| 3 |
+
"id": "_relu_metal_eea2e23",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
| 7 |
"backend": {
|
| 8 |
"type": "metal"
|
| 9 |
}
|
| 10 |
+
}
|