danieldk HF Staff commited on
Commit
30cdf9d
·
1 Parent(s): 3cc269e

Add bootstrap kernel

Browse files

This 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-metal-arm64-darwin/relu_metal/_C.cpython-312-darwin.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f59bb8826eb4974df9653a2ca5e239b467ffde37d210b4c5025c471201548d57
3
+ size 91816
build/torch27-metal-arm64-darwin/relu_metal/_C.cpython-313-darwin.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f59bb8826eb4974df9653a2ca5e239b467ffde37d210b4c5025c471201548d57
3
+ size 91816
build/torch27-metal-arm64-darwin/relu_metal/__init__.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import torch
2
+
3
+ from ._ops import ops
4
+
5
+
6
+ def relu(input: torch.Tensor) -> torch.Tensor:
7
+ return ops.relu(input)
build/torch27-metal-arm64-darwin/relu_metal/_ops.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import torch
2
+ from . import _C
3
+
4
+ ops = torch.ops._C