Kernels
danieldk HF Staff commited on
Commit
b9725b1
·
verified ·
1 Parent(s): 18f0b76

Build uploaded using `kernels`.

Browse files
.gitattributes CHANGED
@@ -210,3 +210,4 @@ build/torch29-cxx11-cu130-x86_64-linux/_relu_ff7d195.abi3.so filter=lfs diff=lfs
210
  build/torch29-cxx11-rocm63-x86_64-linux/_relu_ff7d195.abi3.so filter=lfs diff=lfs merge=lfs -text
211
  build/torch29-cxx11-rocm64-x86_64-linux/_relu_ff7d195.abi3.so filter=lfs diff=lfs merge=lfs -text
212
  build/torch29-cxx11-xpu20252-x86_64-linux/_relu_ff7d195.abi3.so filter=lfs diff=lfs merge=lfs -text
 
 
210
  build/torch29-cxx11-rocm63-x86_64-linux/_relu_ff7d195.abi3.so filter=lfs diff=lfs merge=lfs -text
211
  build/torch29-cxx11-rocm64-x86_64-linux/_relu_ff7d195.abi3.so filter=lfs diff=lfs merge=lfs -text
212
  build/torch29-cxx11-xpu20252-x86_64-linux/_relu_ff7d195.abi3.so filter=lfs diff=lfs merge=lfs -text
213
+ build/torch210-xpu20253-x86_64-windows/relu/_relu_d7b860a.pyd filter=lfs diff=lfs merge=lfs -text
build/torch210-xpu20253-x86_64-windows/metadata.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "version": 1,
3
+ "python-depends": []
4
+ }
build/torch210-xpu20253-x86_64-windows/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/torch210-xpu20253-x86_64-windows/relu/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _relu_d7b860a
3
+ ops = torch.ops._relu_d7b860a
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_relu_d7b860a::{op_name}"
build/torch210-xpu20253-x86_64-windows/relu/_relu_d7b860a.pyd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5f83f85dc85edd8576a9915adbf2d0cf3d509442d8aa1d5be8c08b56174732f
3
+ size 155648