Add bootstrap kernel
Browse filesThis is not a compliant kernel at all, no ABI3, etc. Just an initial
upload so that we can start with support in `kernels`.
build/torch27-cxx98-metal-arm64-darwin/relu/_C.cpython-312-darwin.so
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8802bc414cef1e69ac716bd0d5c10af715c1a07c7d6b1de093a7b6e1e4a8f59
|
3 |
+
size 96216
|
build/torch27-cxx98-metal-arm64-darwin/relu/__init__.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import torch
|
2 |
+
|
3 |
+
from . import _C
|
4 |
+
|
5 |
+
|
6 |
+
def relu(input: torch.Tensor) -> torch.Tensor:
|
7 |
+
return torch.ops._C.relu(input)
|