Kernels
danieldk HF Staff commited on
Commit
c984bd7
·
verified ·
1 Parent(s): 7420709

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 +18 -0
  2. build/torch210-cxx11-cu126-x86_64-linux/__init__.py +12 -0
  3. build/{torch28-cxx11-cu128-x86_64-linux/relu → torch210-cxx11-cu126-x86_64-linux}/_ops.py +3 -3
  4. build/{torch28-cxx11-cu128-x86_64-linux/relu/_relu_8d21eda.abi3.so → torch210-cxx11-cu126-x86_64-linux/_relu_9f1f069.abi3.so} +2 -2
  5. build/torch210-cxx11-cu126-x86_64-linux/metadata.json +1 -0
  6. build/torch210-cxx11-cu126-x86_64-linux/relu/__init__.py +26 -0
  7. build/torch210-cxx11-cu128-x86_64-linux/__init__.py +12 -0
  8. build/{torch28-cxx11-cu129-x86_64-linux/relu → torch210-cxx11-cu128-x86_64-linux}/_ops.py +3 -3
  9. build/{torch28-cxx11-cu129-x86_64-linux/relu/_relu_8d21eda.abi3.so → torch210-cxx11-cu128-x86_64-linux/_relu_9f1f069.abi3.so} +2 -2
  10. build/torch210-cxx11-cu128-x86_64-linux/metadata.json +1 -0
  11. build/torch210-cxx11-cu128-x86_64-linux/relu/__init__.py +26 -0
  12. build/torch210-cxx11-cu130-x86_64-linux/__init__.py +12 -0
  13. build/{torch28-cxx11-cu126-x86_64-linux/relu → torch210-cxx11-cu130-x86_64-linux}/_ops.py +3 -3
  14. build/{torch28-cxx11-rocm63-x86_64-linux/relu/_relu_8d21eda.abi3.so → torch210-cxx11-cu130-x86_64-linux/_relu_9f1f069.abi3.so} +2 -2
  15. build/torch210-cxx11-cu130-x86_64-linux/metadata.json +1 -0
  16. build/torch210-cxx11-cu130-x86_64-linux/relu/__init__.py +26 -0
  17. build/torch210-cxx11-rocm70-x86_64-linux/__init__.py +12 -0
  18. build/{torch28-cxx11-rocm63-x86_64-linux/relu → torch210-cxx11-rocm70-x86_64-linux}/_ops.py +3 -3
  19. build/{torch28-cxx11-cu126-x86_64-linux/relu/_relu_8d21eda.abi3.so → torch210-cxx11-rocm70-x86_64-linux/_relu_9f1f069.abi3.so} +2 -2
  20. build/torch210-cxx11-rocm70-x86_64-linux/metadata.json +1 -0
  21. build/torch210-cxx11-rocm70-x86_64-linux/relu/__init__.py +26 -0
  22. build/torch210-cxx11-rocm71-x86_64-linux/__init__.py +12 -0
  23. build/torch210-cxx11-rocm71-x86_64-linux/_ops.py +9 -0
  24. build/torch210-cxx11-rocm71-x86_64-linux/_relu_9f1f069.abi3.so +3 -0
  25. build/torch210-cxx11-rocm71-x86_64-linux/metadata.json +1 -0
  26. build/torch210-cxx11-rocm71-x86_64-linux/relu/__init__.py +26 -0
  27. build/torch210-cxx11-xpu20253-x86_64-linux/__init__.py +12 -0
  28. build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py +9 -0
  29. build/torch210-cxx11-xpu20253-x86_64-linux/_relu_9f1f069.abi3.so +3 -0
  30. build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json +1 -0
  31. build/torch210-cxx11-xpu20253-x86_64-linux/relu/__init__.py +26 -0
  32. build/torch28-cxx11-cu126-x86_64-linux/__init__.py +12 -0
  33. build/torch28-cxx11-cu126-x86_64-linux/_ops.py +9 -0
  34. build/torch28-cxx11-cu126-x86_64-linux/_relu_9f1f069.abi3.so +3 -0
  35. build/torch28-cxx11-cu126-x86_64-linux/metadata.json +1 -0
  36. build/torch28-cxx11-cu126-x86_64-linux/relu/__init__.py +22 -8
  37. build/torch28-cxx11-cu126-x86_64-linux/relu/__pycache__/__init__.cpython-313.pyc +0 -0
  38. build/torch28-cxx11-cu126-x86_64-linux/relu/__pycache__/_ops.cpython-313.pyc +0 -0
  39. build/torch28-cxx11-cu128-x86_64-linux/__init__.py +12 -0
  40. build/torch28-cxx11-cu128-x86_64-linux/_ops.py +9 -0
  41. build/torch28-cxx11-cu128-x86_64-linux/_relu_9f1f069.abi3.so +3 -0
  42. build/torch28-cxx11-cu128-x86_64-linux/metadata.json +1 -0
  43. build/torch28-cxx11-cu128-x86_64-linux/relu/__init__.py +22 -8
  44. build/torch28-cxx11-cu128-x86_64-linux/relu/__pycache__/__init__.cpython-313.pyc +0 -0
  45. build/torch28-cxx11-cu128-x86_64-linux/relu/__pycache__/_ops.cpython-313.pyc +0 -0
  46. build/torch28-cxx11-cu129-x86_64-linux/__init__.py +12 -0
  47. build/torch28-cxx11-cu129-x86_64-linux/_ops.py +9 -0
  48. build/torch28-cxx11-cu129-x86_64-linux/_relu_9f1f069.abi3.so +3 -0
  49. build/torch28-cxx11-cu129-x86_64-linux/metadata.json +1 -0
  50. build/torch28-cxx11-cu129-x86_64-linux/relu/__init__.py +22 -8
.gitattributes CHANGED
@@ -71,3 +71,21 @@ build/torch29-cxx11-rocm64-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs di
71
  build/torch29-cxx11-xpu20252-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs diff=lfs merge=lfs -text
72
  build/torch29-cxx11-cu126-x86_64-linux/relu/_relu_e52ac39.abi3.so filter=lfs diff=lfs merge=lfs -text
73
  build/torch29-cxx11-cu126-x86_64-linux/relu/_relu_46e4283.abi3.so filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  build/torch29-cxx11-xpu20252-x86_64-linux/relu/_relu_8d21eda.abi3.so filter=lfs diff=lfs merge=lfs -text
72
  build/torch29-cxx11-cu126-x86_64-linux/relu/_relu_e52ac39.abi3.so filter=lfs diff=lfs merge=lfs -text
73
  build/torch29-cxx11-cu126-x86_64-linux/relu/_relu_46e4283.abi3.so filter=lfs diff=lfs merge=lfs -text
74
+ build/torch210-cxx11-cu126-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
75
+ build/torch210-cxx11-cu128-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
76
+ build/torch210-cxx11-cu130-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
77
+ build/torch210-cxx11-rocm70-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
78
+ build/torch210-cxx11-rocm71-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
79
+ build/torch210-cxx11-xpu20253-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
80
+ build/torch28-cxx11-cu126-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
81
+ build/torch28-cxx11-cu128-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
82
+ build/torch28-cxx11-cu129-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
83
+ build/torch28-cxx11-rocm63-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
84
+ build/torch28-cxx11-rocm64-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
85
+ build/torch28-cxx11-xpu20251-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
86
+ build/torch29-cxx11-cu126-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
87
+ build/torch29-cxx11-cu128-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
88
+ build/torch29-cxx11-cu130-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
89
+ build/torch29-cxx11-rocm63-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
90
+ build/torch29-cxx11-rocm64-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
91
+ build/torch29-cxx11-xpu20252-x86_64-linux/_relu_9f1f069.abi3.so filter=lfs diff=lfs merge=lfs -text
build/torch210-cxx11-cu126-x86_64-linux/__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/{torch28-cxx11-cu128-x86_64-linux/relu → torch210-cxx11-cu126-x86_64-linux}/_ops.py RENAMED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_8d21eda
3
- ops = torch.ops._relu_8d21eda
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_8d21eda::{op_name}"
 
1
  import torch
2
+ from . import _relu_9f1f069
3
+ ops = torch.ops._relu_9f1f069
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_relu_9f1f069::{op_name}"
build/{torch28-cxx11-cu128-x86_64-linux/relu/_relu_8d21eda.abi3.so → torch210-cxx11-cu126-x86_64-linux/_relu_9f1f069.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ae72c97d7cff191876d208ff87f7ff8a6c5154f6f739ca8f1eca3662e16e7761
3
- size 2059696
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4331a70e73fe4493c4a77e411ceb88fbdf91fe22988cf387ba888457bc95428a
3
+ size 2019872
build/torch210-cxx11-cu126-x86_64-linux/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"python-depends":[]}
build/torch210-cxx11-cu126-x86_64-linux/relu/__init__.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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/torch210-cxx11-cu128-x86_64-linux/__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/{torch28-cxx11-cu129-x86_64-linux/relu → torch210-cxx11-cu128-x86_64-linux}/_ops.py RENAMED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_8d21eda
3
- ops = torch.ops._relu_8d21eda
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_8d21eda::{op_name}"
 
1
  import torch
2
+ from . import _relu_9f1f069
3
+ ops = torch.ops._relu_9f1f069
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_relu_9f1f069::{op_name}"
build/{torch28-cxx11-cu129-x86_64-linux/relu/_relu_8d21eda.abi3.so → torch210-cxx11-cu128-x86_64-linux/_relu_9f1f069.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b5d87c3a0cc93a8c9ede0229c6596574bee39975950d2f5d39314ae80119a61f
3
- size 2085288
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb9d4b04679a723ed97e12592f1c9977d3e858d896c527b0e99302de5dcbf00d
3
+ size 2111824
build/torch210-cxx11-cu128-x86_64-linux/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"python-depends":[]}
build/torch210-cxx11-cu128-x86_64-linux/relu/__init__.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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/torch210-cxx11-cu130-x86_64-linux/__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/{torch28-cxx11-cu126-x86_64-linux/relu → torch210-cxx11-cu130-x86_64-linux}/_ops.py RENAMED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_8d21eda
3
- ops = torch.ops._relu_8d21eda
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_8d21eda::{op_name}"
 
1
  import torch
2
+ from . import _relu_9f1f069
3
+ ops = torch.ops._relu_9f1f069
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_relu_9f1f069::{op_name}"
build/{torch28-cxx11-rocm63-x86_64-linux/relu/_relu_8d21eda.abi3.so → torch210-cxx11-cu130-x86_64-linux/_relu_9f1f069.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3bd5a2bd6e893cf17d1b9da83381eae186779f7d65c0e8a2a71ea66604137897
3
- size 1956296
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2983b028177a3807d423750a37ca685c7ebfc8100b5f6598df69667afe8f35ec
3
+ size 2129640
build/torch210-cxx11-cu130-x86_64-linux/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"python-depends":[]}
build/torch210-cxx11-cu130-x86_64-linux/relu/__init__.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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/torch210-cxx11-rocm70-x86_64-linux/__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/{torch28-cxx11-rocm63-x86_64-linux/relu → torch210-cxx11-rocm70-x86_64-linux}/_ops.py RENAMED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _relu_8d21eda
3
- ops = torch.ops._relu_8d21eda
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_relu_8d21eda::{op_name}"
 
1
  import torch
2
+ from . import _relu_9f1f069
3
+ ops = torch.ops._relu_9f1f069
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_relu_9f1f069::{op_name}"
build/{torch28-cxx11-cu126-x86_64-linux/relu/_relu_8d21eda.abi3.so → torch210-cxx11-rocm70-x86_64-linux/_relu_9f1f069.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6d68451cf8bb6093b27ea38431c5b9e813adaebc8abc7ea55e1e0f1e6237c596
3
- size 1988376
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0ee62fbd93bbf70a5239bd94669ec10c5466bd871d225dd42d89f68055335c1
3
+ size 1990320
build/torch210-cxx11-rocm70-x86_64-linux/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"python-depends":[]}
build/torch210-cxx11-rocm70-x86_64-linux/relu/__init__.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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/torch210-cxx11-rocm71-x86_64-linux/__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-cxx11-rocm71-x86_64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _relu_9f1f069
3
+ ops = torch.ops._relu_9f1f069
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_relu_9f1f069::{op_name}"
build/torch210-cxx11-rocm71-x86_64-linux/_relu_9f1f069.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87f0d86aeedffc637b070645822e6688be5744263c5fda3d0f92c4a827d8a37b
3
+ size 1990224
build/torch210-cxx11-rocm71-x86_64-linux/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"python-depends":[]}
build/torch210-cxx11-rocm71-x86_64-linux/relu/__init__.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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/torch210-cxx11-xpu20253-x86_64-linux/__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-cxx11-xpu20253-x86_64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _relu_9f1f069
3
+ ops = torch.ops._relu_9f1f069
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_relu_9f1f069::{op_name}"
build/torch210-cxx11-xpu20253-x86_64-linux/_relu_9f1f069.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b8050743b1530ad911c74eef35ec5ffb76c2dda91790c56e083635d49aca10e
3
+ size 2050440
build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"python-depends":[]}
build/torch210-cxx11-xpu20253-x86_64-linux/relu/__init__.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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/torch28-cxx11-cu126-x86_64-linux/__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/torch28-cxx11-cu126-x86_64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _relu_9f1f069
3
+ ops = torch.ops._relu_9f1f069
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_relu_9f1f069::{op_name}"
build/torch28-cxx11-cu126-x86_64-linux/_relu_9f1f069.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ce61ae869ce8392e5ffcbf234b073368eed20808fedcf7236fa10690133d5a2
3
+ size 2013928
build/torch28-cxx11-cu126-x86_64-linux/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"python-depends":[]}
build/torch28-cxx11-cu126-x86_64-linux/relu/__init__.py CHANGED
@@ -1,12 +1,26 @@
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
 
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
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/torch28-cxx11-cu126-x86_64-linux/relu/__pycache__/__init__.cpython-313.pyc DELETED
Binary file (685 Bytes)
 
build/torch28-cxx11-cu126-x86_64-linux/relu/__pycache__/_ops.cpython-313.pyc DELETED
Binary file (508 Bytes)
 
build/torch28-cxx11-cu128-x86_64-linux/__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/torch28-cxx11-cu128-x86_64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _relu_9f1f069
3
+ ops = torch.ops._relu_9f1f069
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_relu_9f1f069::{op_name}"
build/torch28-cxx11-cu128-x86_64-linux/_relu_9f1f069.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f53b59d3863275f40114ae9d415e8dfbd1af68ea11bd924ed60088e76467a645
3
+ size 2101656
build/torch28-cxx11-cu128-x86_64-linux/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"python-depends":[]}
build/torch28-cxx11-cu128-x86_64-linux/relu/__init__.py CHANGED
@@ -1,12 +1,26 @@
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
 
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
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/torch28-cxx11-cu128-x86_64-linux/relu/__pycache__/__init__.cpython-313.pyc DELETED
Binary file (685 Bytes)
 
build/torch28-cxx11-cu128-x86_64-linux/relu/__pycache__/_ops.cpython-313.pyc DELETED
Binary file (508 Bytes)
 
build/torch28-cxx11-cu129-x86_64-linux/__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/torch28-cxx11-cu129-x86_64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _relu_9f1f069
3
+ ops = torch.ops._relu_9f1f069
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_relu_9f1f069::{op_name}"
build/torch28-cxx11-cu129-x86_64-linux/_relu_9f1f069.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4cb02e5b63c1236dbbfc491dc79ac88da1172389f8402f23cbe76e76f1dd0a0
3
+ size 2135440
build/torch28-cxx11-cu129-x86_64-linux/metadata.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"python-depends":[]}
build/torch28-cxx11-cu129-x86_64-linux/relu/__init__.py CHANGED
@@ -1,12 +1,26 @@
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
 
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
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")))