Build uploaded using `kernels`.
Browse files- .gitattributes +1 -0
- build/torch29-cxx11-cu126-x86_64-linux/relu/__init__.py +12 -0
- 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 +9 -0
- build/torch29-cxx11-cu126-x86_64-linux/relu/_relu_46e4283.abi3.so +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
build/torch29-cxx11-cu126-x86_64-linux/relu/_relu_46e4283.abi3.so filter=lfs diff=lfs merge=lfs -text
|
build/torch29-cxx11-cu126-x86_64-linux/relu/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Optional
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
|
| 5 |
+
from ._ops import ops
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
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
|
build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/__init__.cpython-313.pyc
ADDED
|
Binary file (685 Bytes). View file
|
|
|
build/torch29-cxx11-cu126-x86_64-linux/relu/__pycache__/_ops.cpython-313.pyc
ADDED
|
Binary file (508 Bytes). View file
|
|
|
build/torch29-cxx11-cu126-x86_64-linux/relu/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _relu_46e4283
|
| 3 |
+
ops = torch.ops._relu_46e4283
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_relu_46e4283::{op_name}"
|
build/torch29-cxx11-cu126-x86_64-linux/relu/_relu_46e4283.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:568ffdc8884fd0d01a0690745bb744f0fc556d1c0a4ae204abf750f632146fd5
|
| 3 |
+
size 1977272
|