Kernels
danieldk HF Staff commited on
Commit
2cdd8f9
·
verified ·
1 Parent(s): 2e121aa

Build uploaded using `kernels`.

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) 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_6261c06.abi3.so → _relu_cpu_86608d6.abi3.so} +1 -1
  4. build/torch210-cxx11-cpu-x86_64-linux/metadata.json +4 -1
  5. build/torch210-cxx11-cpu-x86_64-linux/relu/__init__.py +2 -2
  6. build/torch210-cxx11-cu126-x86_64-linux/_ops.py +3 -3
  7. build/torch210-cxx11-cu126-x86_64-linux/{_relu_cuda_6261c06.abi3.so → _relu_cuda_86608d6.abi3.so} +1 -1
  8. build/torch210-cxx11-cu126-x86_64-linux/relu/__init__.py +2 -2
  9. build/torch210-cxx11-cu128-x86_64-linux/_ops.py +3 -3
  10. build/torch210-cxx11-cu128-x86_64-linux/{_relu_cuda_6261c06.abi3.so → _relu_cuda_86608d6.abi3.so} +1 -1
  11. build/torch210-cxx11-cu128-x86_64-linux/relu/__init__.py +2 -2
  12. build/torch210-cxx11-cu130-x86_64-linux/_ops.py +3 -3
  13. build/torch210-cxx11-cu130-x86_64-linux/{_relu_cuda_6261c06.abi3.so → _relu_cuda_86608d6.abi3.so} +1 -1
  14. build/torch210-cxx11-cu130-x86_64-linux/relu/__init__.py +2 -2
  15. build/torch210-cxx11-rocm70-x86_64-linux/_ops.py +3 -3
  16. build/torch210-cxx11-rocm70-x86_64-linux/{_relu_rocm_6261c06.abi3.so → _relu_rocm_86608d6.abi3.so} +1 -1
  17. build/torch210-cxx11-rocm70-x86_64-linux/relu/__init__.py +2 -2
  18. build/torch210-cxx11-rocm71-x86_64-linux/_ops.py +3 -3
  19. build/torch210-cxx11-rocm71-x86_64-linux/{_relu_rocm_6261c06.abi3.so → _relu_rocm_86608d6.abi3.so} +1 -1
  20. build/torch210-cxx11-rocm71-x86_64-linux/relu/__init__.py +2 -2
  21. build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py +3 -3
  22. build/torch210-cxx11-xpu20253-x86_64-linux/{_relu_xpu_6261c06.abi3.so → _relu_xpu_86608d6.abi3.so} +1 -1
  23. build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json +4 -1
  24. build/torch210-cxx11-xpu20253-x86_64-linux/relu/__init__.py +2 -2
  25. build/torch211-cxx11-cpu-x86_64-linux/__init__.py +16 -0
  26. build/torch211-cxx11-cpu-x86_64-linux/_ops.py +9 -0
  27. build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so +3 -0
  28. build/torch211-cxx11-cpu-x86_64-linux/layers/__init__.py +11 -0
  29. build/torch211-cxx11-cpu-x86_64-linux/metadata.json +8 -0
  30. build/torch211-cxx11-cpu-x86_64-linux/relu/__init__.py +26 -0
  31. build/torch211-cxx11-cu126-x86_64-linux/__init__.py +16 -0
  32. build/torch211-cxx11-cu126-x86_64-linux/_ops.py +9 -0
  33. build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so +3 -0
  34. build/torch211-cxx11-cu126-x86_64-linux/layers/__init__.py +11 -0
  35. build/torch211-cxx11-cu126-x86_64-linux/metadata.json +18 -0
  36. build/torch211-cxx11-cu126-x86_64-linux/relu/__init__.py +26 -0
  37. build/torch211-cxx11-cu128-x86_64-linux/__init__.py +16 -0
  38. build/torch211-cxx11-cu128-x86_64-linux/_ops.py +9 -0
  39. build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so +3 -0
  40. build/torch211-cxx11-cu128-x86_64-linux/layers/__init__.py +11 -0
  41. build/torch211-cxx11-cu128-x86_64-linux/metadata.json +21 -0
  42. build/torch211-cxx11-cu128-x86_64-linux/relu/__init__.py +26 -0
  43. build/torch211-cxx11-cu130-x86_64-linux/__init__.py +16 -0
  44. build/torch211-cxx11-cu130-x86_64-linux/_ops.py +9 -0
  45. build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so +3 -0
  46. build/torch211-cxx11-cu130-x86_64-linux/layers/__init__.py +11 -0
  47. build/torch211-cxx11-cu130-x86_64-linux/metadata.json +19 -0
  48. build/torch211-cxx11-cu130-x86_64-linux/relu/__init__.py +26 -0
  49. build/torch29-cxx11-cu129-x86_64-linux/__init__.py +16 -0
  50. build/torch29-cxx11-cu129-x86_64-linux/_ops.py +9 -0
.gitattributes CHANGED
@@ -293,3 +293,18 @@ build/torch211-cxx11-cu126-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs d
293
  build/torch211-cxx11-cu128-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
294
  build/torch211-cxx11-cu130-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
295
  build/torch29-cxx11-cu129-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
  build/torch211-cxx11-cu128-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
294
  build/torch211-cxx11-cu130-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
295
  build/torch29-cxx11-cu129-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
296
+ build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
297
+ build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
298
+ build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
299
+ build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
300
+ build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
301
+ build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
302
+ build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
303
+ build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
304
+ build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
305
+ build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
306
+ build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text
307
+ build/torch29-cxx11-cu129-x86_64-linux/_relu_cuda_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
build/torch210-cxx11-cpu-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_cpu_6261c06
3
- ops = torch.ops._relu_cpu_6261c06
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cpu_6261c06::{op_name}"
 
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}"
build/torch210-cxx11-cpu-x86_64-linux/{_relu_cpu_6261c06.abi3.so → _relu_cpu_86608d6.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9bc51be4e362c70be9c87e4e3e8464904547c487496ce8a0ebe552c5fa6effab
3
  size 1778080
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb3101aa8a8832d09b046f2ea229fc5acd982cc3c41b2daa452f98b72f4b1659
3
  size 1778080
build/torch210-cxx11-cpu-x86_64-linux/metadata.json CHANGED
@@ -1,5 +1,8 @@
1
  {
2
  "version": 1,
3
  "license": "Apache-2.0",
4
- "python-depends": []
 
 
 
5
  }
 
1
  {
2
  "version": 1,
3
  "license": "Apache-2.0",
4
+ "python-depends": [],
5
+ "backend": {
6
+ "type": "cpu"
7
+ }
8
  }
build/torch210-cxx11-cpu-x86_64-linux/relu/__init__.py CHANGED
@@ -1,10 +1,10 @@
1
  import ctypes
 
2
  import sys
3
-
4
- import importlib
5
  from pathlib import Path
6
  from types import ModuleType
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
 
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
build/torch210-cxx11-cu126-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_cuda_6261c06
3
- ops = torch.ops._relu_cuda_6261c06
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_6261c06::{op_name}"
 
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}"
build/torch210-cxx11-cu126-x86_64-linux/{_relu_cuda_6261c06.abi3.so → _relu_cuda_86608d6.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b3aaf0a90799a5102aba64409350132a8bba560a8816e00be51a8b5f41f9475d
3
  size 2019880
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42d89bbfb5cb2e7d20d17839d8c2c8bbcbce030005117ea8e4239e0bb5a36c9a
3
  size 2019880
build/torch210-cxx11-cu126-x86_64-linux/relu/__init__.py CHANGED
@@ -1,10 +1,10 @@
1
  import ctypes
 
2
  import sys
3
-
4
- import importlib
5
  from pathlib import Path
6
  from types import ModuleType
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
 
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
build/torch210-cxx11-cu128-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_cuda_6261c06
3
- ops = torch.ops._relu_cuda_6261c06
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_6261c06::{op_name}"
 
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}"
build/torch210-cxx11-cu128-x86_64-linux/{_relu_cuda_6261c06.abi3.so → _relu_cuda_86608d6.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1e433d2b9bf2ec78c5567fce9b71cef81fc0fe3e5ce5c68ed35774fb4bfc3c33
3
  size 2111840
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a979d4a7dc42f5dee9408772d44880fc2d3147e209f9121cb9a4351d0685ec0
3
  size 2111840
build/torch210-cxx11-cu128-x86_64-linux/relu/__init__.py CHANGED
@@ -1,10 +1,10 @@
1
  import ctypes
 
2
  import sys
3
-
4
- import importlib
5
  from pathlib import Path
6
  from types import ModuleType
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
 
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
build/torch210-cxx11-cu130-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_cuda_6261c06
3
- ops = torch.ops._relu_cuda_6261c06
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_cuda_6261c06::{op_name}"
 
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}"
build/torch210-cxx11-cu130-x86_64-linux/{_relu_cuda_6261c06.abi3.so → _relu_cuda_86608d6.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7d44340251ab3a892a7c74890b06230810cca22518d174d620562ae216bc60ae
3
  size 2129656
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a70b409caa99f22e012078f2e2f29806237dfe369e6ceee08d7a22fd3715e64
3
  size 2129656
build/torch210-cxx11-cu130-x86_64-linux/relu/__init__.py CHANGED
@@ -1,10 +1,10 @@
1
  import ctypes
 
2
  import sys
3
-
4
- import importlib
5
  from pathlib import Path
6
  from types import ModuleType
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
 
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
build/torch210-cxx11-rocm70-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_rocm_6261c06
3
- ops = torch.ops._relu_rocm_6261c06
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_rocm_6261c06::{op_name}"
 
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}"
build/torch210-cxx11-rocm70-x86_64-linux/{_relu_rocm_6261c06.abi3.so → _relu_rocm_86608d6.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:111ce943531a26f724e8c241b86959b2c65e247c1c3d89b0b5a8f7f910ed8d3f
3
  size 1990368
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cbaa8b12f96175c0b41d3f26df32ab7f4497b6f117eb92c155734237e6999f4
3
  size 1990368
build/torch210-cxx11-rocm70-x86_64-linux/relu/__init__.py CHANGED
@@ -1,10 +1,10 @@
1
  import ctypes
 
2
  import sys
3
-
4
- import importlib
5
  from pathlib import Path
6
  from types import ModuleType
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
 
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
build/torch210-cxx11-rocm71-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_rocm_6261c06
3
- ops = torch.ops._relu_rocm_6261c06
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_rocm_6261c06::{op_name}"
 
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}"
build/torch210-cxx11-rocm71-x86_64-linux/{_relu_rocm_6261c06.abi3.so → _relu_rocm_86608d6.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c4c743ab2b2fc7cbf616579558ef2acbb30f9610f2ea076c63ddfc9e50c0c69b
3
  size 1990272
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aec0382837474451fa85f6b5eddfb8818f2afbca2c30a9421e4cef15a15a81c3
3
  size 1990272
build/torch210-cxx11-rocm71-x86_64-linux/relu/__init__.py CHANGED
@@ -1,10 +1,10 @@
1
  import ctypes
 
2
  import sys
3
-
4
- import importlib
5
  from pathlib import Path
6
  from types import ModuleType
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
 
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
build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_xpu_6261c06
3
- ops = torch.ops._relu_xpu_6261c06
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_xpu_6261c06::{op_name}"
 
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}"
build/torch210-cxx11-xpu20253-x86_64-linux/{_relu_xpu_6261c06.abi3.so → _relu_xpu_86608d6.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6ccc014010a351d00431933062b5f385e6bf809b2eb5f6324bcd38ef7ab894a4
3
  size 2050448
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bf868b995e07c8aff4569b3f403e1b4570533c96150f4c61d5dbc25b12925ce
3
  size 2050448
build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json CHANGED
@@ -1,5 +1,8 @@
1
  {
2
  "version": 1,
3
  "license": "Apache-2.0",
4
- "python-depends": []
 
 
 
5
  }
 
1
  {
2
  "version": 1,
3
  "license": "Apache-2.0",
4
+ "python-depends": [],
5
+ "backend": {
6
+ "type": "xpu"
7
+ }
8
  }
build/torch210-cxx11-xpu20253-x86_64-linux/relu/__init__.py CHANGED
@@ -1,10 +1,10 @@
1
  import ctypes
 
2
  import sys
3
-
4
- import importlib
5
  from pathlib import Path
6
  from types import ModuleType
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
 
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
build/torch211-cxx11-cpu-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-cpu-x86_64-linux/_ops.py ADDED
@@ -0,0 +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}"
build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5992a3aed7e1e62a0f2d35ca967be5fa4914e94c4cacc28ad9733510a57be8c3
3
+ size 1778080
build/torch211-cxx11-cpu-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-cpu-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": "cpu"
7
+ }
8
+ }
build/torch211-cxx11-cpu-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-cu126-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-cu126-x86_64-linux/_ops.py ADDED
@@ -0,0 +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}"
build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8651c711c2de41626b7cfed0f331b82d1ff43f95966165e37f270f8c41729abd
3
+ size 2012824
build/torch211-cxx11-cu126-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-cu126-x86_64-linux/metadata.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1,
3
+ "license": "Apache-2.0",
4
+ "python-depends": [],
5
+ "backend": {
6
+ "type": "cuda",
7
+ "archs": [
8
+ "7.0",
9
+ "7.2",
10
+ "7.5",
11
+ "8.0",
12
+ "8.6",
13
+ "8.7",
14
+ "8.9",
15
+ "9.0+PTX"
16
+ ]
17
+ }
18
+ }
build/torch211-cxx11-cu126-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-cu128-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-cu128-x86_64-linux/_ops.py ADDED
@@ -0,0 +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}"
build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55951153622803b777e832fc034d224e3c577ee68204544c463ea5f9df48276f
3
+ size 2100680
build/torch211-cxx11-cu128-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-cu128-x86_64-linux/metadata.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1,
3
+ "license": "Apache-2.0",
4
+ "python-depends": [],
5
+ "backend": {
6
+ "type": "cuda",
7
+ "archs": [
8
+ "10.0",
9
+ "10.1",
10
+ "12.0+PTX",
11
+ "7.0",
12
+ "7.2",
13
+ "7.5",
14
+ "8.0",
15
+ "8.6",
16
+ "8.7",
17
+ "8.9",
18
+ "9.0"
19
+ ]
20
+ }
21
+ }
build/torch211-cxx11-cu128-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-cu130-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-cu130-x86_64-linux/_ops.py ADDED
@@ -0,0 +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}"
build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0eae60d2dd625b4ba565bd1dd74cdddcc842b44ecaba2cca9b1c8ace2ebaba3
3
+ size 2118496
build/torch211-cxx11-cu130-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-cu130-x86_64-linux/metadata.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1,
3
+ "license": "Apache-2.0",
4
+ "python-depends": [],
5
+ "backend": {
6
+ "type": "cuda",
7
+ "archs": [
8
+ "10.0",
9
+ "11.0",
10
+ "12.0+PTX",
11
+ "7.5",
12
+ "8.0",
13
+ "8.6",
14
+ "8.7",
15
+ "8.9",
16
+ "9.0"
17
+ ]
18
+ }
19
+ }
build/torch211-cxx11-cu130-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/__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/torch29-cxx11-cu129-x86_64-linux/_ops.py ADDED
@@ -0,0 +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}"