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
CHANGED
|
@@ -357,3 +357,4 @@ build/torch211-cxx11-cu126-aarch64-linux/_relu_cuda_918d6dc.abi3.so filter=lfs d
|
|
| 357 |
build/torch211-cxx11-cu128-aarch64-linux/_relu_cuda_918d6dc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 358 |
build/torch211-cxx11-cu130-aarch64-linux/_relu_cuda_918d6dc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 359 |
build/torch29-cxx11-cu129-aarch64-linux/_relu_cuda_918d6dc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 357 |
build/torch211-cxx11-cu128-aarch64-linux/_relu_cuda_918d6dc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 358 |
build/torch211-cxx11-cu130-aarch64-linux/_relu_cuda_918d6dc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 359 |
build/torch29-cxx11-cu129-aarch64-linux/_relu_cuda_918d6dc.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 360 |
+
build/torch210-xpu20253-x86_64-windows/_relu_xpu_e08ad6f.pyd filter=lfs diff=lfs merge=lfs -text
|
build/torch210-xpu20253-x86_64-windows/_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_xpu_e08ad6f
|
| 3 |
+
ops = torch.ops._relu_xpu_e08ad6f
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_xpu_e08ad6f::{op_name}"
|
build/torch210-xpu20253-x86_64-windows/{_relu_xpu_fd389c8.pyd → _relu_xpu_e08ad6f.pyd}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 166400
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fcbf4365f37f4b253e550a96891d20a00347a18c7e0bbfb97ad901a5422393e0
|
| 3 |
size 166400
|
build/torch210-xpu20253-x86_64-windows/metadata.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"version": 1,
|
| 3 |
"license": "Apache-2.0",
|
| 4 |
-
"python-depends": []
|
|
|
|
|
|
|
|
|
|
| 5 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"version": 1,
|
| 3 |
"license": "Apache-2.0",
|
| 4 |
+
"python-depends": [],
|
| 5 |
+
"backend": {
|
| 6 |
+
"type": "xpu"
|
| 7 |
+
}
|
| 8 |
}
|
build/torch210-xpu20253-x86_64-windows/relu/__init__.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import ctypes
|
|
|
|
| 2 |
import sys
|
| 3 |
-
|
| 4 |
-
import importlib
|
| 5 |
from pathlib import Path
|
| 6 |
from types import ModuleType
|
| 7 |
|
|
|
|
| 8 |
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
# it would also be used for other imports. So, we make a module name that
|
|
|
|
| 1 |
import ctypes
|
| 2 |
+
import importlib.util
|
| 3 |
import sys
|
|
|
|
|
|
|
| 4 |
from pathlib import Path
|
| 5 |
from types import ModuleType
|
| 6 |
|
| 7 |
+
|
| 8 |
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
# it would also be used for other imports. So, we make a module name that
|