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 +3 -0
- build/torch210-cpu-aarch64-darwin/_ops.py +3 -3
- build/{torch212-cpu-aarch64-darwin/_relu_cpu_c835f43.abi3.so → torch210-cpu-aarch64-darwin/_relu_cpu_ae3dbf6.abi3.so} +0 -0
- build/torch210-cpu-aarch64-darwin/metadata.json +1 -1
- build/torch210-metal-aarch64-darwin/_ops.py +3 -3
- build/torch210-metal-aarch64-darwin/{_relu_metal_c835f43.abi3.so → _relu_metal_ae3dbf6.abi3.so} +2 -2
- build/torch210-metal-aarch64-darwin/metadata.json +1 -1
- build/torch211-cpu-aarch64-darwin/_ops.py +3 -3
- build/torch211-cpu-aarch64-darwin/{_relu_cpu_c835f43.abi3.so → _relu_cpu_ae3dbf6.abi3.so} +0 -0
- build/torch211-cpu-aarch64-darwin/metadata.json +1 -1
- build/torch211-metal-aarch64-darwin/_ops.py +3 -3
- build/torch211-metal-aarch64-darwin/{_relu_metal_c835f43.abi3.so → _relu_metal_ae3dbf6.abi3.so} +2 -2
- build/torch211-metal-aarch64-darwin/metadata.json +1 -1
- build/torch212-cpu-aarch64-darwin/_ops.py +3 -3
- build/{torch210-cpu-aarch64-darwin/_relu_cpu_c835f43.abi3.so → torch212-cpu-aarch64-darwin/_relu_cpu_ae3dbf6.abi3.so} +0 -0
- build/torch212-cpu-aarch64-darwin/metadata.json +1 -1
- build/torch212-metal-aarch64-darwin/_ops.py +3 -3
- build/torch212-metal-aarch64-darwin/{_relu_metal_c835f43.abi3.so → _relu_metal_ae3dbf6.abi3.so} +1 -1
- build/torch212-metal-aarch64-darwin/metadata.json +1 -1
.gitattributes
CHANGED
|
@@ -636,3 +636,6 @@ build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_ae3dbf6.abi3.so filter=lfs di
|
|
| 636 |
build/torch212-cxx11-cu126-x86_64-linux/_relu_cuda_ae3dbf6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 637 |
build/torch212-cxx11-cu130-x86_64-linux/_relu_cuda_ae3dbf6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 638 |
build/torch212-cxx11-cu132-x86_64-linux/_relu_cuda_ae3dbf6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 636 |
build/torch212-cxx11-cu126-x86_64-linux/_relu_cuda_ae3dbf6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 637 |
build/torch212-cxx11-cu130-x86_64-linux/_relu_cuda_ae3dbf6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 638 |
build/torch212-cxx11-cu132-x86_64-linux/_relu_cuda_ae3dbf6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 639 |
+
build/torch210-metal-aarch64-darwin/_relu_metal_ae3dbf6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 640 |
+
build/torch211-metal-aarch64-darwin/_relu_metal_ae3dbf6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 641 |
+
build/torch212-metal-aarch64-darwin/_relu_metal_ae3dbf6.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_ae3dbf6
|
| 3 |
+
ops = torch.ops._relu_cpu_ae3dbf6
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cpu_ae3dbf6::{op_name}"
|
build/{torch212-cpu-aarch64-darwin/_relu_cpu_c835f43.abi3.so → torch210-cpu-aarch64-darwin/_relu_cpu_ae3dbf6.abi3.so}
RENAMED
|
Binary files a/build/torch212-cpu-aarch64-darwin/_relu_cpu_c835f43.abi3.so and b/build/torch210-cpu-aarch64-darwin/_relu_cpu_ae3dbf6.abi3.so differ
|
|
|
build/torch210-cpu-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
+
"id": "_relu_cpu_ae3dbf6",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
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_ae3dbf6
|
| 3 |
+
ops = torch.ops._relu_metal_ae3dbf6
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_metal_ae3dbf6::{op_name}"
|
build/torch210-metal-aarch64-darwin/{_relu_metal_c835f43.abi3.so → _relu_metal_ae3dbf6.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:bccfb80ded903f83c221441f7d265ae74eabe33ab6e5220c33feec9d6ee1e5f7
|
| 3 |
+
size 100904
|
build/torch210-metal-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
+
"id": "_relu_metal_ae3dbf6",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
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_ae3dbf6
|
| 3 |
+
ops = torch.ops._relu_cpu_ae3dbf6
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cpu_ae3dbf6::{op_name}"
|
build/torch211-cpu-aarch64-darwin/{_relu_cpu_c835f43.abi3.so → _relu_cpu_ae3dbf6.abi3.so}
RENAMED
|
Binary files a/build/torch211-cpu-aarch64-darwin/_relu_cpu_c835f43.abi3.so and b/build/torch211-cpu-aarch64-darwin/_relu_cpu_ae3dbf6.abi3.so differ
|
|
|
build/torch211-cpu-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
+
"id": "_relu_cpu_ae3dbf6",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
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_ae3dbf6
|
| 3 |
+
ops = torch.ops._relu_metal_ae3dbf6
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_metal_ae3dbf6::{op_name}"
|
build/torch211-metal-aarch64-darwin/{_relu_metal_c835f43.abi3.so → _relu_metal_ae3dbf6.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:346e79818a09d84d05a356493e83fff54c8a1d011e5780da3abb4b4601b9da04
|
| 3 |
+
size 100904
|
build/torch211-metal-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
+
"id": "_relu_metal_ae3dbf6",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
build/torch212-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_ae3dbf6
|
| 3 |
+
ops = torch.ops._relu_cpu_ae3dbf6
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cpu_ae3dbf6::{op_name}"
|
build/{torch210-cpu-aarch64-darwin/_relu_cpu_c835f43.abi3.so → torch212-cpu-aarch64-darwin/_relu_cpu_ae3dbf6.abi3.so}
RENAMED
|
Binary files a/build/torch210-cpu-aarch64-darwin/_relu_cpu_c835f43.abi3.so and b/build/torch212-cpu-aarch64-darwin/_relu_cpu_ae3dbf6.abi3.so differ
|
|
|
build/torch212-cpu-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
+
"id": "_relu_cpu_ae3dbf6",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
build/torch212-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_ae3dbf6
|
| 3 |
+
ops = torch.ops._relu_metal_ae3dbf6
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_metal_ae3dbf6::{op_name}"
|
build/torch212-metal-aarch64-darwin/{_relu_metal_c835f43.abi3.so → _relu_metal_ae3dbf6.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 100952
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e21e6d416e875dbcb68b261fb71edbba4eb9ac7cf073b8e3b8100f6da4e4a0c7
|
| 3 |
size 100952
|
build/torch212-metal-aarch64-darwin/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|
|
|
|
| 1 |
{
|
| 2 |
"name": "relu",
|
| 3 |
+
"id": "_relu_metal_ae3dbf6",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"python-depends": [],
|