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 +15 -0
- build/torch210-cxx11-cpu-x86_64-linux/_ops.py +3 -3
- build/torch210-cxx11-cpu-x86_64-linux/{_relu_cpu_86608d6.abi3.so → _relu_cpu_a1c8862.abi3.so} +1 -1
- build/torch210-cxx11-cu126-x86_64-linux/_ops.py +3 -3
- build/torch210-cxx11-cu126-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
- build/torch210-cxx11-cu128-x86_64-linux/_ops.py +3 -3
- build/torch210-cxx11-cu128-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
- build/torch210-cxx11-cu130-x86_64-linux/_ops.py +3 -3
- build/torch210-cxx11-cu130-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
- build/torch210-cxx11-rocm70-x86_64-linux/_ops.py +3 -3
- build/torch210-cxx11-rocm70-x86_64-linux/{_relu_rocm_86608d6.abi3.so → _relu_rocm_a1c8862.abi3.so} +1 -1
- build/torch210-cxx11-rocm71-x86_64-linux/_ops.py +3 -3
- build/torch210-cxx11-rocm71-x86_64-linux/{_relu_rocm_86608d6.abi3.so → _relu_rocm_a1c8862.abi3.so} +1 -1
- build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py +3 -3
- build/torch210-cxx11-xpu20253-x86_64-linux/{_relu_xpu_86608d6.abi3.so → _relu_xpu_a1c8862.abi3.so} +1 -1
- build/torch211-cxx11-cpu-x86_64-linux/_ops.py +3 -3
- build/torch211-cxx11-cpu-x86_64-linux/{_relu_cpu_86608d6.abi3.so → _relu_cpu_a1c8862.abi3.so} +1 -1
- build/torch211-cxx11-cu126-x86_64-linux/_ops.py +3 -3
- build/torch211-cxx11-cu126-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
- build/torch211-cxx11-cu128-x86_64-linux/_ops.py +3 -3
- build/torch211-cxx11-cu128-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
- build/torch211-cxx11-cu130-x86_64-linux/_ops.py +3 -3
- build/torch211-cxx11-cu130-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
- build/torch211-cxx11-rocm71-x86_64-linux/__init__.py +16 -0
- build/torch211-cxx11-rocm71-x86_64-linux/_ops.py +9 -0
- build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_a1c8862.abi3.so +3 -0
- build/torch211-cxx11-rocm71-x86_64-linux/layers/__init__.py +11 -0
- build/torch211-cxx11-rocm71-x86_64-linux/metadata.json +17 -0
- build/torch211-cxx11-rocm71-x86_64-linux/relu/__init__.py +26 -0
- build/torch211-cxx11-rocm72-x86_64-linux/__init__.py +16 -0
- build/torch211-cxx11-rocm72-x86_64-linux/_ops.py +9 -0
- build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_a1c8862.abi3.so +3 -0
- build/torch211-cxx11-rocm72-x86_64-linux/layers/__init__.py +11 -0
- build/torch211-cxx11-rocm72-x86_64-linux/metadata.json +17 -0
- build/torch211-cxx11-rocm72-x86_64-linux/relu/__init__.py +26 -0
- build/torch211-cxx11-xpu20253-x86_64-linux/__init__.py +16 -0
- build/torch211-cxx11-xpu20253-x86_64-linux/_ops.py +9 -0
- build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_a1c8862.abi3.so +3 -0
- build/torch211-cxx11-xpu20253-x86_64-linux/layers/__init__.py +11 -0
- build/torch211-cxx11-xpu20253-x86_64-linux/metadata.json +8 -0
- build/torch211-cxx11-xpu20253-x86_64-linux/relu/__init__.py +26 -0
- build/torch29-cxx11-cu129-x86_64-linux/_ops.py +3 -3
- build/torch29-cxx11-cu129-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
.gitattributes
CHANGED
|
@@ -308,3 +308,18 @@ build/torch29-cxx11-cu129-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs dif
|
|
| 308 |
build/torch29-cxx11-rocm63-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 309 |
build/torch29-cxx11-rocm64-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 310 |
build/torch29-cxx11-xpu20252-x86_64-linux/_relu_xpu_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 308 |
build/torch29-cxx11-rocm63-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 309 |
build/torch29-cxx11-rocm64-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 310 |
build/torch29-cxx11-xpu20252-x86_64-linux/_relu_xpu_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 311 |
+
build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 312 |
+
build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 313 |
+
build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 314 |
+
build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 315 |
+
build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 316 |
+
build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 317 |
+
build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 318 |
+
build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 319 |
+
build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 320 |
+
build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 321 |
+
build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 322 |
+
build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 323 |
+
build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 324 |
+
build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 325 |
+
build/torch29-cxx11-cu129-x86_64-linux/_relu_cuda_a1c8862.abi3.so filter=lfs diff=lfs merge=lfs -text
|
build/torch210-cxx11-cpu-x86_64-linux/_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_a1c8862
|
| 3 |
+
ops = torch.ops._relu_cpu_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cpu_a1c8862::{op_name}"
|
build/torch210-cxx11-cpu-x86_64-linux/{_relu_cpu_86608d6.abi3.so → _relu_cpu_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1778080
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:927192543221b337ab2ece266b789d5867166f6485d03e5d19e0359982d9108a
|
| 3 |
size 1778080
|
build/torch210-cxx11-cu126-x86_64-linux/_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_cuda_a1c8862
|
| 3 |
+
ops = torch.ops._relu_cuda_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cuda_a1c8862::{op_name}"
|
build/torch210-cxx11-cu126-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2019880
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:173be039b3b5f337d8960a84c7f4842672c060c6ea56e6aa2bcab7527f9bf1c0
|
| 3 |
size 2019880
|
build/torch210-cxx11-cu128-x86_64-linux/_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_cuda_a1c8862
|
| 3 |
+
ops = torch.ops._relu_cuda_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cuda_a1c8862::{op_name}"
|
build/torch210-cxx11-cu128-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2111840
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddf52c5991be19873addd6abd49bc0a89040868b8b85d01065995c8cb8088a81
|
| 3 |
size 2111840
|
build/torch210-cxx11-cu130-x86_64-linux/_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_cuda_a1c8862
|
| 3 |
+
ops = torch.ops._relu_cuda_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cuda_a1c8862::{op_name}"
|
build/torch210-cxx11-cu130-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2129656
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53dcaa2a0c1edf5b749e5c72da25d956f70e04c9bf15fd9ecc626b52e505542b
|
| 3 |
size 2129656
|
build/torch210-cxx11-rocm70-x86_64-linux/_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_rocm_a1c8862
|
| 3 |
+
ops = torch.ops._relu_rocm_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_rocm_a1c8862::{op_name}"
|
build/torch210-cxx11-rocm70-x86_64-linux/{_relu_rocm_86608d6.abi3.so → _relu_rocm_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1990368
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:304b0f0de80ad4b28f4bab0d5a21169408da8b5ff7448773495634be5da23571
|
| 3 |
size 1990368
|
build/torch210-cxx11-rocm71-x86_64-linux/_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_rocm_a1c8862
|
| 3 |
+
ops = torch.ops._relu_rocm_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_rocm_a1c8862::{op_name}"
|
build/torch210-cxx11-rocm71-x86_64-linux/{_relu_rocm_86608d6.abi3.so → _relu_rocm_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1990272
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ca11f690c3ff20c349aabc629a38b12017a5263f342e8deb1b56ac958f740b2
|
| 3 |
size 1990272
|
build/torch210-cxx11-xpu20253-x86_64-linux/_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_a1c8862
|
| 3 |
+
ops = torch.ops._relu_xpu_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_xpu_a1c8862::{op_name}"
|
build/torch210-cxx11-xpu20253-x86_64-linux/{_relu_xpu_86608d6.abi3.so → _relu_xpu_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2050448
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:055bca3bc315b9109abdeee7d200a083179aab12cd834434e5a74e5effe7d296
|
| 3 |
size 2050448
|
build/torch211-cxx11-cpu-x86_64-linux/_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_a1c8862
|
| 3 |
+
ops = torch.ops._relu_cpu_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cpu_a1c8862::{op_name}"
|
build/torch211-cxx11-cpu-x86_64-linux/{_relu_cpu_86608d6.abi3.so → _relu_cpu_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1778080
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:470580dc66e5f8f623caa643e6810a0326c57607339b55f15f7a35926d9daba3
|
| 3 |
size 1778080
|
build/torch211-cxx11-cu126-x86_64-linux/_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_cuda_a1c8862
|
| 3 |
+
ops = torch.ops._relu_cuda_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cuda_a1c8862::{op_name}"
|
build/torch211-cxx11-cu126-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2012824
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d22a217e5eab8e81147cc183925fe2c4c81e620334145a703f6ceda205b4c6f
|
| 3 |
size 2012824
|
build/torch211-cxx11-cu128-x86_64-linux/_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_cuda_a1c8862
|
| 3 |
+
ops = torch.ops._relu_cuda_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cuda_a1c8862::{op_name}"
|
build/torch211-cxx11-cu128-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2100680
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90330df87088e79522cca99f630adf49610efb42e9ae2b4269fb099106a5df0e
|
| 3 |
size 2100680
|
build/torch211-cxx11-cu130-x86_64-linux/_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_cuda_a1c8862
|
| 3 |
+
ops = torch.ops._relu_cuda_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cuda_a1c8862::{op_name}"
|
build/torch211-cxx11-cu130-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2118496
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:866547ee02adff44db716aa7636bf02bc9f5e026eb52469a5a59cd81404beb88
|
| 3 |
size 2118496
|
build/torch211-cxx11-rocm71-x86_64-linux/__init__.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
|
| 5 |
+
from ._ops import ops
|
| 6 |
+
|
| 7 |
+
from . import layers
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def relu(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor:
|
| 11 |
+
if out is None:
|
| 12 |
+
out = torch.empty_like(x)
|
| 13 |
+
ops.relu(out, x)
|
| 14 |
+
return out
|
| 15 |
+
|
| 16 |
+
__all__ = ["relu", "layers"]
|
build/torch211-cxx11-rocm71-x86_64-linux/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _relu_rocm_a1c8862
|
| 3 |
+
ops = torch.ops._relu_rocm_a1c8862
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_relu_rocm_a1c8862::{op_name}"
|
build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_a1c8862.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bb75312ceb8006ef1a27948928880b62de0ba297c5b01ea55d2c7bf4b0613b2
|
| 3 |
+
size 1978400
|
build/torch211-cxx11-rocm71-x86_64-linux/layers/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
import torch.nn as nn
|
| 3 |
+
|
| 4 |
+
from .._ops import ops
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
class ReLU(nn.Module):
|
| 8 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 9 |
+
out = torch.empty_like(x)
|
| 10 |
+
ops.relu(out, x)
|
| 11 |
+
return out
|
build/torch211-cxx11-rocm71-x86_64-linux/metadata.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"license": "Apache-2.0",
|
| 4 |
+
"python-depends": [],
|
| 5 |
+
"backend": {
|
| 6 |
+
"type": "rocm",
|
| 7 |
+
"archs": [
|
| 8 |
+
"gfx1030",
|
| 9 |
+
"gfx1100",
|
| 10 |
+
"gfx1101",
|
| 11 |
+
"gfx906",
|
| 12 |
+
"gfx908",
|
| 13 |
+
"gfx90a",
|
| 14 |
+
"gfx942"
|
| 15 |
+
]
|
| 16 |
+
}
|
| 17 |
+
}
|
build/torch211-cxx11-rocm71-x86_64-linux/relu/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch211-cxx11-rocm72-x86_64-linux/__init__.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
|
| 5 |
+
from ._ops import ops
|
| 6 |
+
|
| 7 |
+
from . import layers
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def relu(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor:
|
| 11 |
+
if out is None:
|
| 12 |
+
out = torch.empty_like(x)
|
| 13 |
+
ops.relu(out, x)
|
| 14 |
+
return out
|
| 15 |
+
|
| 16 |
+
__all__ = ["relu", "layers"]
|
build/torch211-cxx11-rocm72-x86_64-linux/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _relu_rocm_a1c8862
|
| 3 |
+
ops = torch.ops._relu_rocm_a1c8862
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_relu_rocm_a1c8862::{op_name}"
|
build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_a1c8862.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1173b498588d521df0aa511c66e6c388bfc1417c11fba53359e8a9029ceb3a99
|
| 3 |
+
size 1977568
|
build/torch211-cxx11-rocm72-x86_64-linux/layers/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
import torch.nn as nn
|
| 3 |
+
|
| 4 |
+
from .._ops import ops
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
class ReLU(nn.Module):
|
| 8 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 9 |
+
out = torch.empty_like(x)
|
| 10 |
+
ops.relu(out, x)
|
| 11 |
+
return out
|
build/torch211-cxx11-rocm72-x86_64-linux/metadata.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"license": "Apache-2.0",
|
| 4 |
+
"python-depends": [],
|
| 5 |
+
"backend": {
|
| 6 |
+
"type": "rocm",
|
| 7 |
+
"archs": [
|
| 8 |
+
"gfx1030",
|
| 9 |
+
"gfx1100",
|
| 10 |
+
"gfx1101",
|
| 11 |
+
"gfx906",
|
| 12 |
+
"gfx908",
|
| 13 |
+
"gfx90a",
|
| 14 |
+
"gfx942"
|
| 15 |
+
]
|
| 16 |
+
}
|
| 17 |
+
}
|
build/torch211-cxx11-rocm72-x86_64-linux/relu/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch211-cxx11-xpu20253-x86_64-linux/__init__.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
|
| 5 |
+
from ._ops import ops
|
| 6 |
+
|
| 7 |
+
from . import layers
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def relu(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor:
|
| 11 |
+
if out is None:
|
| 12 |
+
out = torch.empty_like(x)
|
| 13 |
+
ops.relu(out, x)
|
| 14 |
+
return out
|
| 15 |
+
|
| 16 |
+
__all__ = ["relu", "layers"]
|
build/torch211-cxx11-xpu20253-x86_64-linux/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _relu_xpu_a1c8862
|
| 3 |
+
ops = torch.ops._relu_xpu_a1c8862
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_relu_xpu_a1c8862::{op_name}"
|
build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_a1c8862.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:852323c60384b47b642cd745a5eab1ab6ad8c0138aa94ad1cd6974174ffb2c1b
|
| 3 |
+
size 2050448
|
build/torch211-cxx11-xpu20253-x86_64-linux/layers/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
import torch.nn as nn
|
| 3 |
+
|
| 4 |
+
from .._ops import ops
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
class ReLU(nn.Module):
|
| 8 |
+
def forward(self, x: torch.Tensor) -> torch.Tensor:
|
| 9 |
+
out = torch.empty_like(x)
|
| 10 |
+
ops.relu(out, x)
|
| 11 |
+
return out
|
build/torch211-cxx11-xpu20253-x86_64-linux/metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"license": "Apache-2.0",
|
| 4 |
+
"python-depends": [],
|
| 5 |
+
"backend": {
|
| 6 |
+
"type": "xpu"
|
| 7 |
+
}
|
| 8 |
+
}
|
build/torch211-cxx11-xpu20253-x86_64-linux/relu/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch29-cxx11-cu129-x86_64-linux/_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_cuda_a1c8862
|
| 3 |
+
ops = torch.ops._relu_cuda_a1c8862
|
| 4 |
|
| 5 |
def add_op_namespace_prefix(op_name: str):
|
| 6 |
"""
|
| 7 |
Prefix op by namespace.
|
| 8 |
"""
|
| 9 |
+
return f"_relu_cuda_a1c8862::{op_name}"
|
build/torch29-cxx11-cu129-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2135712
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0dd2647a10f05d5e7a3317f9aeb1de9e4ec290411ff818878983270545f003b6
|
| 3 |
size 2135712
|