Kernels
danieldk HF Staff commited on
Commit
1b49c3e
·
verified ·
1 Parent(s): 72d0518

Build uploaded using `kernels`.

Browse files
Files changed (43) hide show
  1. .gitattributes +15 -0
  2. build/torch210-cxx11-cpu-x86_64-linux/_ops.py +3 -3
  3. build/torch210-cxx11-cpu-x86_64-linux/{_relu_cpu_86608d6.abi3.so → _relu_cpu_a1c8862.abi3.so} +1 -1
  4. build/torch210-cxx11-cu126-x86_64-linux/_ops.py +3 -3
  5. build/torch210-cxx11-cu126-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
  6. build/torch210-cxx11-cu128-x86_64-linux/_ops.py +3 -3
  7. build/torch210-cxx11-cu128-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
  8. build/torch210-cxx11-cu130-x86_64-linux/_ops.py +3 -3
  9. build/torch210-cxx11-cu130-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
  10. build/torch210-cxx11-rocm70-x86_64-linux/_ops.py +3 -3
  11. build/torch210-cxx11-rocm70-x86_64-linux/{_relu_rocm_86608d6.abi3.so → _relu_rocm_a1c8862.abi3.so} +1 -1
  12. build/torch210-cxx11-rocm71-x86_64-linux/_ops.py +3 -3
  13. build/torch210-cxx11-rocm71-x86_64-linux/{_relu_rocm_86608d6.abi3.so → _relu_rocm_a1c8862.abi3.so} +1 -1
  14. build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py +3 -3
  15. build/torch210-cxx11-xpu20253-x86_64-linux/{_relu_xpu_86608d6.abi3.so → _relu_xpu_a1c8862.abi3.so} +1 -1
  16. build/torch211-cxx11-cpu-x86_64-linux/_ops.py +3 -3
  17. build/torch211-cxx11-cpu-x86_64-linux/{_relu_cpu_86608d6.abi3.so → _relu_cpu_a1c8862.abi3.so} +1 -1
  18. build/torch211-cxx11-cu126-x86_64-linux/_ops.py +3 -3
  19. build/torch211-cxx11-cu126-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
  20. build/torch211-cxx11-cu128-x86_64-linux/_ops.py +3 -3
  21. build/torch211-cxx11-cu128-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
  22. build/torch211-cxx11-cu130-x86_64-linux/_ops.py +3 -3
  23. build/torch211-cxx11-cu130-x86_64-linux/{_relu_cuda_86608d6.abi3.so → _relu_cuda_a1c8862.abi3.so} +1 -1
  24. build/torch211-cxx11-rocm71-x86_64-linux/__init__.py +16 -0
  25. build/torch211-cxx11-rocm71-x86_64-linux/_ops.py +9 -0
  26. build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_a1c8862.abi3.so +3 -0
  27. build/torch211-cxx11-rocm71-x86_64-linux/layers/__init__.py +11 -0
  28. build/torch211-cxx11-rocm71-x86_64-linux/metadata.json +17 -0
  29. build/torch211-cxx11-rocm71-x86_64-linux/relu/__init__.py +26 -0
  30. build/torch211-cxx11-rocm72-x86_64-linux/__init__.py +16 -0
  31. build/torch211-cxx11-rocm72-x86_64-linux/_ops.py +9 -0
  32. build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_a1c8862.abi3.so +3 -0
  33. build/torch211-cxx11-rocm72-x86_64-linux/layers/__init__.py +11 -0
  34. build/torch211-cxx11-rocm72-x86_64-linux/metadata.json +17 -0
  35. build/torch211-cxx11-rocm72-x86_64-linux/relu/__init__.py +26 -0
  36. build/torch211-cxx11-xpu20253-x86_64-linux/__init__.py +16 -0
  37. build/torch211-cxx11-xpu20253-x86_64-linux/_ops.py +9 -0
  38. build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_a1c8862.abi3.so +3 -0
  39. build/torch211-cxx11-xpu20253-x86_64-linux/layers/__init__.py +11 -0
  40. build/torch211-cxx11-xpu20253-x86_64-linux/metadata.json +8 -0
  41. build/torch211-cxx11-xpu20253-x86_64-linux/relu/__init__.py +26 -0
  42. build/torch29-cxx11-cu129-x86_64-linux/_ops.py +3 -3
  43. 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 _relu_cpu_86608d6
3
- ops = torch.ops._relu_cpu_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cpu_86608d6::{op_name}"
 
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:fb3101aa8a8832d09b046f2ea229fc5acd982cc3c41b2daa452f98b72f4b1659
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 _relu_cuda_86608d6
3
- ops = torch.ops._relu_cuda_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_86608d6::{op_name}"
 
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:42d89bbfb5cb2e7d20d17839d8c2c8bbcbce030005117ea8e4239e0bb5a36c9a
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 _relu_cuda_86608d6
3
- ops = torch.ops._relu_cuda_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_86608d6::{op_name}"
 
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:2a979d4a7dc42f5dee9408772d44880fc2d3147e209f9121cb9a4351d0685ec0
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 _relu_cuda_86608d6
3
- ops = torch.ops._relu_cuda_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_86608d6::{op_name}"
 
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:4a70b409caa99f22e012078f2e2f29806237dfe369e6ceee08d7a22fd3715e64
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 _relu_rocm_86608d6
3
- ops = torch.ops._relu_rocm_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_rocm_86608d6::{op_name}"
 
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:3cbaa8b12f96175c0b41d3f26df32ab7f4497b6f117eb92c155734237e6999f4
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 _relu_rocm_86608d6
3
- ops = torch.ops._relu_rocm_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_rocm_86608d6::{op_name}"
 
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:aec0382837474451fa85f6b5eddfb8818f2afbca2c30a9421e4cef15a15a81c3
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 _relu_xpu_86608d6
3
- ops = torch.ops._relu_xpu_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_xpu_86608d6::{op_name}"
 
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:7bf868b995e07c8aff4569b3f403e1b4570533c96150f4c61d5dbc25b12925ce
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 _relu_cpu_86608d6
3
- ops = torch.ops._relu_cpu_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cpu_86608d6::{op_name}"
 
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:5992a3aed7e1e62a0f2d35ca967be5fa4914e94c4cacc28ad9733510a57be8c3
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 _relu_cuda_86608d6
3
- ops = torch.ops._relu_cuda_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_86608d6::{op_name}"
 
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:8651c711c2de41626b7cfed0f331b82d1ff43f95966165e37f270f8c41729abd
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 _relu_cuda_86608d6
3
- ops = torch.ops._relu_cuda_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_86608d6::{op_name}"
 
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:55951153622803b777e832fc034d224e3c577ee68204544c463ea5f9df48276f
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 _relu_cuda_86608d6
3
- ops = torch.ops._relu_cuda_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_86608d6::{op_name}"
 
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:f0eae60d2dd625b4ba565bd1dd74cdddcc842b44ecaba2cca9b1c8ace2ebaba3
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 _relu_cuda_86608d6
3
- ops = torch.ops._relu_cuda_86608d6
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_86608d6::{op_name}"
 
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:ed73000578a78d40fb67587714c8bf8e4b9c5178d50dd48807b6855886946d0e
3
  size 2135712
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0dd2647a10f05d5e7a3317f9aeb1de9e4ec290411ff818878983270545f003b6
3
  size 2135712