diff --git a/.gitattributes b/.gitattributes index b5971e1d1d11b69cbfc6fe32dafbe6e5c3c5e1f7..a38ae6e9294a049d4eeffd982c16b18f4291b09d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -293,3 +293,18 @@ build/torch211-cxx11-cu126-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs d build/torch211-cxx11-cu128-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text build/torch211-cxx11-cu130-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text build/torch29-cxx11-cu129-aarch64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch29-cxx11-cu129-x86_64-linux/_relu_cuda_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch29-cxx11-rocm63-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch29-cxx11-rocm64-x86_64-linux/_relu_rocm_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch29-cxx11-xpu20252-x86_64-linux/_relu_xpu_86608d6.abi3.so filter=lfs diff=lfs merge=lfs -text diff --git a/build/torch210-cxx11-cpu-x86_64-linux/_ops.py b/build/torch210-cxx11-cpu-x86_64-linux/_ops.py index ff8b9666569cab35ae0a56dc9d3363e5970dfe59..742590e8b28ebba8b3de9f63e53b95c48f2357e5 100644 --- a/build/torch210-cxx11-cpu-x86_64-linux/_ops.py +++ b/build/torch210-cxx11-cpu-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_cpu_6261c06 -ops = torch.ops._relu_cpu_6261c06 +from . import _relu_cpu_86608d6 +ops = torch.ops._relu_cpu_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cpu_6261c06::{op_name}" + return f"_relu_cpu_86608d6::{op_name}" diff --git a/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_6261c06.abi3.so b/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_6261c06.abi3.so deleted file mode 100644 index c7277c34a37c54a802f56518c7b4136de5710606..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9bc51be4e362c70be9c87e4e3e8464904547c487496ce8a0ebe552c5fa6effab -size 1778080 diff --git a/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so b/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..bec0be8bdebe93f8f72569730f33c81adcffb4d5 --- /dev/null +++ b/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb3101aa8a8832d09b046f2ea229fc5acd982cc3c41b2daa452f98b72f4b1659 +size 1778080 diff --git a/build/torch210-cxx11-cpu-x86_64-linux/metadata.json b/build/torch210-cxx11-cpu-x86_64-linux/metadata.json index a5381dd80836f863378b9f33a559815688de9287..eb22148b3f551be150f7824a5684c19bbc40ae0e 100644 --- a/build/torch210-cxx11-cpu-x86_64-linux/metadata.json +++ b/build/torch210-cxx11-cpu-x86_64-linux/metadata.json @@ -1,5 +1,8 @@ { "version": 1, "license": "Apache-2.0", - "python-depends": [] + "python-depends": [], + "backend": { + "type": "cpu" + } } \ No newline at end of file diff --git a/build/torch210-cxx11-cpu-x86_64-linux/relu/__init__.py b/build/torch210-cxx11-cpu-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch210-cxx11-cpu-x86_64-linux/relu/__init__.py +++ b/build/torch210-cxx11-cpu-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that diff --git a/build/torch210-cxx11-cu126-x86_64-linux/_ops.py b/build/torch210-cxx11-cu126-x86_64-linux/_ops.py index 54798b7a318e36d9aea831cec37d64d7c39f74a8..7b233c06636f708de446100c432fd1400a8cd95c 100644 --- a/build/torch210-cxx11-cu126-x86_64-linux/_ops.py +++ b/build/torch210-cxx11-cu126-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_cuda_6261c06 -ops = torch.ops._relu_cuda_6261c06 +from . import _relu_cuda_86608d6 +ops = torch.ops._relu_cuda_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cuda_6261c06::{op_name}" + return f"_relu_cuda_86608d6::{op_name}" diff --git a/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_6261c06.abi3.so b/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_6261c06.abi3.so deleted file mode 100644 index fb346f2c8a9146b284c5d83390b909996fce3d45..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3aaf0a90799a5102aba64409350132a8bba560a8816e00be51a8b5f41f9475d -size 2019880 diff --git a/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so b/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..98d6259c449f0210745e6ecabd03677ac684ccfc --- /dev/null +++ b/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42d89bbfb5cb2e7d20d17839d8c2c8bbcbce030005117ea8e4239e0bb5a36c9a +size 2019880 diff --git a/build/torch210-cxx11-cu126-x86_64-linux/relu/__init__.py b/build/torch210-cxx11-cu126-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch210-cxx11-cu126-x86_64-linux/relu/__init__.py +++ b/build/torch210-cxx11-cu126-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that diff --git a/build/torch210-cxx11-cu128-x86_64-linux/_ops.py b/build/torch210-cxx11-cu128-x86_64-linux/_ops.py index 54798b7a318e36d9aea831cec37d64d7c39f74a8..7b233c06636f708de446100c432fd1400a8cd95c 100644 --- a/build/torch210-cxx11-cu128-x86_64-linux/_ops.py +++ b/build/torch210-cxx11-cu128-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_cuda_6261c06 -ops = torch.ops._relu_cuda_6261c06 +from . import _relu_cuda_86608d6 +ops = torch.ops._relu_cuda_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cuda_6261c06::{op_name}" + return f"_relu_cuda_86608d6::{op_name}" diff --git a/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_6261c06.abi3.so b/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_6261c06.abi3.so deleted file mode 100644 index d793f14c07ed0d973ca90b657caaafe928ff6fdc..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e433d2b9bf2ec78c5567fce9b71cef81fc0fe3e5ce5c68ed35774fb4bfc3c33 -size 2111840 diff --git a/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so b/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..81fbb547c5e884d195ffe1c84883280b0e85adf2 --- /dev/null +++ b/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a979d4a7dc42f5dee9408772d44880fc2d3147e209f9121cb9a4351d0685ec0 +size 2111840 diff --git a/build/torch210-cxx11-cu128-x86_64-linux/relu/__init__.py b/build/torch210-cxx11-cu128-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch210-cxx11-cu128-x86_64-linux/relu/__init__.py +++ b/build/torch210-cxx11-cu128-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that diff --git a/build/torch210-cxx11-cu130-x86_64-linux/_ops.py b/build/torch210-cxx11-cu130-x86_64-linux/_ops.py index 54798b7a318e36d9aea831cec37d64d7c39f74a8..7b233c06636f708de446100c432fd1400a8cd95c 100644 --- a/build/torch210-cxx11-cu130-x86_64-linux/_ops.py +++ b/build/torch210-cxx11-cu130-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_cuda_6261c06 -ops = torch.ops._relu_cuda_6261c06 +from . import _relu_cuda_86608d6 +ops = torch.ops._relu_cuda_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cuda_6261c06::{op_name}" + return f"_relu_cuda_86608d6::{op_name}" diff --git a/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_6261c06.abi3.so b/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_6261c06.abi3.so deleted file mode 100644 index 552feeceb03720a3ae735a91320e2c122b257668..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d44340251ab3a892a7c74890b06230810cca22518d174d620562ae216bc60ae -size 2129656 diff --git a/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so b/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..16e610c6ca866e5b54450044bd5c23cddb78285a --- /dev/null +++ b/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a70b409caa99f22e012078f2e2f29806237dfe369e6ceee08d7a22fd3715e64 +size 2129656 diff --git a/build/torch210-cxx11-cu130-x86_64-linux/relu/__init__.py b/build/torch210-cxx11-cu130-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch210-cxx11-cu130-x86_64-linux/relu/__init__.py +++ b/build/torch210-cxx11-cu130-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that diff --git a/build/torch210-cxx11-rocm70-x86_64-linux/_ops.py b/build/torch210-cxx11-rocm70-x86_64-linux/_ops.py index 6522586762fd33860e634154c091fa05059ddfe1..c1c20fe25d7594d8f980483a7a61a2d3ebeff18f 100644 --- a/build/torch210-cxx11-rocm70-x86_64-linux/_ops.py +++ b/build/torch210-cxx11-rocm70-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_rocm_6261c06 -ops = torch.ops._relu_rocm_6261c06 +from . import _relu_rocm_86608d6 +ops = torch.ops._relu_rocm_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_rocm_6261c06::{op_name}" + return f"_relu_rocm_86608d6::{op_name}" diff --git a/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_6261c06.abi3.so b/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_6261c06.abi3.so deleted file mode 100644 index 2f5173fd715aa33763d20b8f0ed7c9d04c800df7..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:111ce943531a26f724e8c241b86959b2c65e247c1c3d89b0b5a8f7f910ed8d3f -size 1990368 diff --git a/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_86608d6.abi3.so b/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..80158523450c466e2ca49e02f56dd7659074e6fb --- /dev/null +++ b/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cbaa8b12f96175c0b41d3f26df32ab7f4497b6f117eb92c155734237e6999f4 +size 1990368 diff --git a/build/torch210-cxx11-rocm70-x86_64-linux/relu/__init__.py b/build/torch210-cxx11-rocm70-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch210-cxx11-rocm70-x86_64-linux/relu/__init__.py +++ b/build/torch210-cxx11-rocm70-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that diff --git a/build/torch210-cxx11-rocm71-x86_64-linux/_ops.py b/build/torch210-cxx11-rocm71-x86_64-linux/_ops.py index 6522586762fd33860e634154c091fa05059ddfe1..c1c20fe25d7594d8f980483a7a61a2d3ebeff18f 100644 --- a/build/torch210-cxx11-rocm71-x86_64-linux/_ops.py +++ b/build/torch210-cxx11-rocm71-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_rocm_6261c06 -ops = torch.ops._relu_rocm_6261c06 +from . import _relu_rocm_86608d6 +ops = torch.ops._relu_rocm_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_rocm_6261c06::{op_name}" + return f"_relu_rocm_86608d6::{op_name}" diff --git a/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_6261c06.abi3.so b/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_6261c06.abi3.so deleted file mode 100644 index 58d07bc923af985cce574847e499e8839db1b612..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4c743ab2b2fc7cbf616579558ef2acbb30f9610f2ea076c63ddfc9e50c0c69b -size 1990272 diff --git a/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_86608d6.abi3.so b/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..543b7aaa4ec5dac35579384529e93a61850c5566 --- /dev/null +++ b/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aec0382837474451fa85f6b5eddfb8818f2afbca2c30a9421e4cef15a15a81c3 +size 1990272 diff --git a/build/torch210-cxx11-rocm71-x86_64-linux/relu/__init__.py b/build/torch210-cxx11-rocm71-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch210-cxx11-rocm71-x86_64-linux/relu/__init__.py +++ b/build/torch210-cxx11-rocm71-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that diff --git a/build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py b/build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py index a045efb682ea904f9f35ac056d7a5de18ae067ce..d1875100934a1943f3b4167032e9fd7fb6085aa5 100644 --- a/build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py +++ b/build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_xpu_6261c06 -ops = torch.ops._relu_xpu_6261c06 +from . import _relu_xpu_86608d6 +ops = torch.ops._relu_xpu_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_xpu_6261c06::{op_name}" + return f"_relu_xpu_86608d6::{op_name}" diff --git a/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_6261c06.abi3.so b/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_6261c06.abi3.so deleted file mode 100644 index 2aedff592a21d355e45aa25bf66b532d3c9fe558..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ccc014010a351d00431933062b5f385e6bf809b2eb5f6324bcd38ef7ab894a4 -size 2050448 diff --git a/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_86608d6.abi3.so b/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..536844d39532a1253e90b21539834c4c644371a6 --- /dev/null +++ b/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bf868b995e07c8aff4569b3f403e1b4570533c96150f4c61d5dbc25b12925ce +size 2050448 diff --git a/build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json b/build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json index a5381dd80836f863378b9f33a559815688de9287..b911d0a2549a35a1c65ab7e77d32e5aac23cd6ac 100644 --- a/build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json +++ b/build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json @@ -1,5 +1,8 @@ { "version": 1, "license": "Apache-2.0", - "python-depends": [] + "python-depends": [], + "backend": { + "type": "xpu" + } } \ No newline at end of file diff --git a/build/torch210-cxx11-xpu20253-x86_64-linux/relu/__init__.py b/build/torch210-cxx11-xpu20253-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch210-cxx11-xpu20253-x86_64-linux/relu/__init__.py +++ b/build/torch210-cxx11-xpu20253-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that diff --git a/build/torch211-cxx11-cpu-x86_64-linux/__init__.py b/build/torch211-cxx11-cpu-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch211-cxx11-cpu-x86_64-linux/__init__.py @@ -0,0 +1,16 @@ +from typing import Optional + +import torch + +from ._ops import ops + +from . import layers + + +def relu(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor: + if out is None: + out = torch.empty_like(x) + ops.relu(out, x) + return out + +__all__ = ["relu", "layers"] diff --git a/build/torch211-cxx11-cpu-x86_64-linux/_ops.py b/build/torch211-cxx11-cpu-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..742590e8b28ebba8b3de9f63e53b95c48f2357e5 --- /dev/null +++ b/build/torch211-cxx11-cpu-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_cpu_86608d6 +ops = torch.ops._relu_cpu_86608d6 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_cpu_86608d6::{op_name}" diff --git a/build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so b/build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..72b8af9bf23f49e4cbf3cb6758374e063c3f5be4 --- /dev/null +++ b/build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5992a3aed7e1e62a0f2d35ca967be5fa4914e94c4cacc28ad9733510a57be8c3 +size 1778080 diff --git a/build/torch211-cxx11-cpu-x86_64-linux/layers/__init__.py b/build/torch211-cxx11-cpu-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch211-cxx11-cpu-x86_64-linux/layers/__init__.py @@ -0,0 +1,11 @@ +import torch +import torch.nn as nn + +from .._ops import ops + + +class ReLU(nn.Module): + def forward(self, x: torch.Tensor) -> torch.Tensor: + out = torch.empty_like(x) + ops.relu(out, x) + return out diff --git a/build/torch211-cxx11-cpu-x86_64-linux/metadata.json b/build/torch211-cxx11-cpu-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..eb22148b3f551be150f7824a5684c19bbc40ae0e --- /dev/null +++ b/build/torch211-cxx11-cpu-x86_64-linux/metadata.json @@ -0,0 +1,8 @@ +{ + "version": 1, + "license": "Apache-2.0", + "python-depends": [], + "backend": { + "type": "cpu" + } +} \ No newline at end of file diff --git a/build/torch211-cxx11-cpu-x86_64-linux/relu/__init__.py b/build/torch211-cxx11-cpu-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch211-cxx11-cpu-x86_64-linux/relu/__init__.py @@ -0,0 +1,26 @@ +import ctypes +import importlib.util +import sys +from pathlib import Path +from types import ModuleType + + +def _import_from_path(file_path: Path) -> ModuleType: + # We cannot use the module name as-is, after adding it to `sys.modules`, + # it would also be used for other imports. So, we make a module name that + # depends on the path for it to be unique using the hex-encoded hash of + # the path. + path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value) + module_name = path_hash + spec = importlib.util.spec_from_file_location(module_name, file_path) + if spec is None: + raise ImportError(f"Cannot load spec for {module_name} from {file_path}") + module = importlib.util.module_from_spec(spec) + if module is None: + raise ImportError(f"Cannot load module {module_name} from spec") + sys.modules[module_name] = module + spec.loader.exec_module(module) # type: ignore + return module + + +globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py"))) diff --git a/build/torch211-cxx11-cu126-x86_64-linux/__init__.py b/build/torch211-cxx11-cu126-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch211-cxx11-cu126-x86_64-linux/__init__.py @@ -0,0 +1,16 @@ +from typing import Optional + +import torch + +from ._ops import ops + +from . import layers + + +def relu(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor: + if out is None: + out = torch.empty_like(x) + ops.relu(out, x) + return out + +__all__ = ["relu", "layers"] diff --git a/build/torch211-cxx11-cu126-x86_64-linux/_ops.py b/build/torch211-cxx11-cu126-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..7b233c06636f708de446100c432fd1400a8cd95c --- /dev/null +++ b/build/torch211-cxx11-cu126-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_cuda_86608d6 +ops = torch.ops._relu_cuda_86608d6 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_cuda_86608d6::{op_name}" diff --git a/build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so b/build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..85df5f53c27268359adced2b2566f7250f74b522 --- /dev/null +++ b/build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8651c711c2de41626b7cfed0f331b82d1ff43f95966165e37f270f8c41729abd +size 2012824 diff --git a/build/torch211-cxx11-cu126-x86_64-linux/layers/__init__.py b/build/torch211-cxx11-cu126-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch211-cxx11-cu126-x86_64-linux/layers/__init__.py @@ -0,0 +1,11 @@ +import torch +import torch.nn as nn + +from .._ops import ops + + +class ReLU(nn.Module): + def forward(self, x: torch.Tensor) -> torch.Tensor: + out = torch.empty_like(x) + ops.relu(out, x) + return out diff --git a/build/torch211-cxx11-cu126-x86_64-linux/metadata.json b/build/torch211-cxx11-cu126-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..f5902b55ab0b2b561c0cf97567c9806c60839c7f --- /dev/null +++ b/build/torch211-cxx11-cu126-x86_64-linux/metadata.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "license": "Apache-2.0", + "python-depends": [], + "backend": { + "type": "cuda", + "archs": [ + "7.0", + "7.2", + "7.5", + "8.0", + "8.6", + "8.7", + "8.9", + "9.0+PTX" + ] + } +} diff --git a/build/torch211-cxx11-cu126-x86_64-linux/relu/__init__.py b/build/torch211-cxx11-cu126-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch211-cxx11-cu126-x86_64-linux/relu/__init__.py @@ -0,0 +1,26 @@ +import ctypes +import importlib.util +import sys +from pathlib import Path +from types import ModuleType + + +def _import_from_path(file_path: Path) -> ModuleType: + # We cannot use the module name as-is, after adding it to `sys.modules`, + # it would also be used for other imports. So, we make a module name that + # depends on the path for it to be unique using the hex-encoded hash of + # the path. + path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value) + module_name = path_hash + spec = importlib.util.spec_from_file_location(module_name, file_path) + if spec is None: + raise ImportError(f"Cannot load spec for {module_name} from {file_path}") + module = importlib.util.module_from_spec(spec) + if module is None: + raise ImportError(f"Cannot load module {module_name} from spec") + sys.modules[module_name] = module + spec.loader.exec_module(module) # type: ignore + return module + + +globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py"))) diff --git a/build/torch211-cxx11-cu128-x86_64-linux/__init__.py b/build/torch211-cxx11-cu128-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch211-cxx11-cu128-x86_64-linux/__init__.py @@ -0,0 +1,16 @@ +from typing import Optional + +import torch + +from ._ops import ops + +from . import layers + + +def relu(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor: + if out is None: + out = torch.empty_like(x) + ops.relu(out, x) + return out + +__all__ = ["relu", "layers"] diff --git a/build/torch211-cxx11-cu128-x86_64-linux/_ops.py b/build/torch211-cxx11-cu128-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..7b233c06636f708de446100c432fd1400a8cd95c --- /dev/null +++ b/build/torch211-cxx11-cu128-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_cuda_86608d6 +ops = torch.ops._relu_cuda_86608d6 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_cuda_86608d6::{op_name}" diff --git a/build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so b/build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..c154e9856ac89c8d024f3aaa27d6c9ae1cc846c3 --- /dev/null +++ b/build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55951153622803b777e832fc034d224e3c577ee68204544c463ea5f9df48276f +size 2100680 diff --git a/build/torch211-cxx11-cu128-x86_64-linux/layers/__init__.py b/build/torch211-cxx11-cu128-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch211-cxx11-cu128-x86_64-linux/layers/__init__.py @@ -0,0 +1,11 @@ +import torch +import torch.nn as nn + +from .._ops import ops + + +class ReLU(nn.Module): + def forward(self, x: torch.Tensor) -> torch.Tensor: + out = torch.empty_like(x) + ops.relu(out, x) + return out diff --git a/build/torch211-cxx11-cu128-x86_64-linux/metadata.json b/build/torch211-cxx11-cu128-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8b796af185fbbd8594fcd846949aa5fadc0ccdda --- /dev/null +++ b/build/torch211-cxx11-cu128-x86_64-linux/metadata.json @@ -0,0 +1,21 @@ +{ + "version": 1, + "license": "Apache-2.0", + "python-depends": [], + "backend": { + "type": "cuda", + "archs": [ + "10.0", + "10.1", + "12.0+PTX", + "7.0", + "7.2", + "7.5", + "8.0", + "8.6", + "8.7", + "8.9", + "9.0" + ] + } +} diff --git a/build/torch211-cxx11-cu128-x86_64-linux/relu/__init__.py b/build/torch211-cxx11-cu128-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch211-cxx11-cu128-x86_64-linux/relu/__init__.py @@ -0,0 +1,26 @@ +import ctypes +import importlib.util +import sys +from pathlib import Path +from types import ModuleType + + +def _import_from_path(file_path: Path) -> ModuleType: + # We cannot use the module name as-is, after adding it to `sys.modules`, + # it would also be used for other imports. So, we make a module name that + # depends on the path for it to be unique using the hex-encoded hash of + # the path. + path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value) + module_name = path_hash + spec = importlib.util.spec_from_file_location(module_name, file_path) + if spec is None: + raise ImportError(f"Cannot load spec for {module_name} from {file_path}") + module = importlib.util.module_from_spec(spec) + if module is None: + raise ImportError(f"Cannot load module {module_name} from spec") + sys.modules[module_name] = module + spec.loader.exec_module(module) # type: ignore + return module + + +globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py"))) diff --git a/build/torch211-cxx11-cu130-x86_64-linux/__init__.py b/build/torch211-cxx11-cu130-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch211-cxx11-cu130-x86_64-linux/__init__.py @@ -0,0 +1,16 @@ +from typing import Optional + +import torch + +from ._ops import ops + +from . import layers + + +def relu(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor: + if out is None: + out = torch.empty_like(x) + ops.relu(out, x) + return out + +__all__ = ["relu", "layers"] diff --git a/build/torch211-cxx11-cu130-x86_64-linux/_ops.py b/build/torch211-cxx11-cu130-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..7b233c06636f708de446100c432fd1400a8cd95c --- /dev/null +++ b/build/torch211-cxx11-cu130-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_cuda_86608d6 +ops = torch.ops._relu_cuda_86608d6 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_cuda_86608d6::{op_name}" diff --git a/build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so b/build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..30adb91eda1d08f52d8c20439e1e2ad0542589a9 --- /dev/null +++ b/build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0eae60d2dd625b4ba565bd1dd74cdddcc842b44ecaba2cca9b1c8ace2ebaba3 +size 2118496 diff --git a/build/torch211-cxx11-cu130-x86_64-linux/layers/__init__.py b/build/torch211-cxx11-cu130-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch211-cxx11-cu130-x86_64-linux/layers/__init__.py @@ -0,0 +1,11 @@ +import torch +import torch.nn as nn + +from .._ops import ops + + +class ReLU(nn.Module): + def forward(self, x: torch.Tensor) -> torch.Tensor: + out = torch.empty_like(x) + ops.relu(out, x) + return out diff --git a/build/torch211-cxx11-cu130-x86_64-linux/metadata.json b/build/torch211-cxx11-cu130-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..66651b7d3f95ac9e5ce5fc2a641b6f0f50788f87 --- /dev/null +++ b/build/torch211-cxx11-cu130-x86_64-linux/metadata.json @@ -0,0 +1,19 @@ +{ + "version": 1, + "license": "Apache-2.0", + "python-depends": [], + "backend": { + "type": "cuda", + "archs": [ + "10.0", + "11.0", + "12.0+PTX", + "7.5", + "8.0", + "8.6", + "8.7", + "8.9", + "9.0" + ] + } +} diff --git a/build/torch211-cxx11-cu130-x86_64-linux/relu/__init__.py b/build/torch211-cxx11-cu130-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch211-cxx11-cu130-x86_64-linux/relu/__init__.py @@ -0,0 +1,26 @@ +import ctypes +import importlib.util +import sys +from pathlib import Path +from types import ModuleType + + +def _import_from_path(file_path: Path) -> ModuleType: + # We cannot use the module name as-is, after adding it to `sys.modules`, + # it would also be used for other imports. So, we make a module name that + # depends on the path for it to be unique using the hex-encoded hash of + # the path. + path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value) + module_name = path_hash + spec = importlib.util.spec_from_file_location(module_name, file_path) + if spec is None: + raise ImportError(f"Cannot load spec for {module_name} from {file_path}") + module = importlib.util.module_from_spec(spec) + if module is None: + raise ImportError(f"Cannot load module {module_name} from spec") + sys.modules[module_name] = module + spec.loader.exec_module(module) # type: ignore + return module + + +globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py"))) diff --git a/build/torch29-cxx11-cu129-x86_64-linux/__init__.py b/build/torch29-cxx11-cu129-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch29-cxx11-cu129-x86_64-linux/__init__.py @@ -0,0 +1,16 @@ +from typing import Optional + +import torch + +from ._ops import ops + +from . import layers + + +def relu(x: torch.Tensor, out: Optional[torch.Tensor] = None) -> torch.Tensor: + if out is None: + out = torch.empty_like(x) + ops.relu(out, x) + return out + +__all__ = ["relu", "layers"] diff --git a/build/torch29-cxx11-cu129-x86_64-linux/_ops.py b/build/torch29-cxx11-cu129-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..7b233c06636f708de446100c432fd1400a8cd95c --- /dev/null +++ b/build/torch29-cxx11-cu129-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_cuda_86608d6 +ops = torch.ops._relu_cuda_86608d6 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_cuda_86608d6::{op_name}" diff --git a/build/torch29-cxx11-cu129-x86_64-linux/_relu_cuda_86608d6.abi3.so b/build/torch29-cxx11-cu129-x86_64-linux/_relu_cuda_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..c13b30425901948cdf4aeeeedbfda6d8216b43e0 --- /dev/null +++ b/build/torch29-cxx11-cu129-x86_64-linux/_relu_cuda_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed73000578a78d40fb67587714c8bf8e4b9c5178d50dd48807b6855886946d0e +size 2135712 diff --git a/build/torch29-cxx11-cu129-x86_64-linux/layers/__init__.py b/build/torch29-cxx11-cu129-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch29-cxx11-cu129-x86_64-linux/layers/__init__.py @@ -0,0 +1,11 @@ +import torch +import torch.nn as nn + +from .._ops import ops + + +class ReLU(nn.Module): + def forward(self, x: torch.Tensor) -> torch.Tensor: + out = torch.empty_like(x) + ops.relu(out, x) + return out diff --git a/build/torch29-cxx11-cu129-x86_64-linux/metadata.json b/build/torch29-cxx11-cu129-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..8b796af185fbbd8594fcd846949aa5fadc0ccdda --- /dev/null +++ b/build/torch29-cxx11-cu129-x86_64-linux/metadata.json @@ -0,0 +1,21 @@ +{ + "version": 1, + "license": "Apache-2.0", + "python-depends": [], + "backend": { + "type": "cuda", + "archs": [ + "10.0", + "10.1", + "12.0+PTX", + "7.0", + "7.2", + "7.5", + "8.0", + "8.6", + "8.7", + "8.9", + "9.0" + ] + } +} diff --git a/build/torch29-cxx11-cu129-x86_64-linux/relu/__init__.py b/build/torch29-cxx11-cu129-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch29-cxx11-cu129-x86_64-linux/relu/__init__.py @@ -0,0 +1,26 @@ +import ctypes +import importlib.util +import sys +from pathlib import Path +from types import ModuleType + + +def _import_from_path(file_path: Path) -> ModuleType: + # We cannot use the module name as-is, after adding it to `sys.modules`, + # it would also be used for other imports. So, we make a module name that + # depends on the path for it to be unique using the hex-encoded hash of + # the path. + path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value) + module_name = path_hash + spec = importlib.util.spec_from_file_location(module_name, file_path) + if spec is None: + raise ImportError(f"Cannot load spec for {module_name} from {file_path}") + module = importlib.util.module_from_spec(spec) + if module is None: + raise ImportError(f"Cannot load module {module_name} from spec") + sys.modules[module_name] = module + spec.loader.exec_module(module) # type: ignore + return module + + +globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py"))) diff --git a/build/torch29-cxx11-rocm63-x86_64-linux/_ops.py b/build/torch29-cxx11-rocm63-x86_64-linux/_ops.py index 6522586762fd33860e634154c091fa05059ddfe1..c1c20fe25d7594d8f980483a7a61a2d3ebeff18f 100644 --- a/build/torch29-cxx11-rocm63-x86_64-linux/_ops.py +++ b/build/torch29-cxx11-rocm63-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_rocm_6261c06 -ops = torch.ops._relu_rocm_6261c06 +from . import _relu_rocm_86608d6 +ops = torch.ops._relu_rocm_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_rocm_6261c06::{op_name}" + return f"_relu_rocm_86608d6::{op_name}" diff --git a/build/torch29-cxx11-rocm63-x86_64-linux/_relu_rocm_6261c06.abi3.so b/build/torch29-cxx11-rocm63-x86_64-linux/_relu_rocm_6261c06.abi3.so deleted file mode 100644 index 10d97307ff909883bed62a2eacc2f61d3a0efffc..0000000000000000000000000000000000000000 --- a/build/torch29-cxx11-rocm63-x86_64-linux/_relu_rocm_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:592555b16e93327db8d0e75a3288de3c1f9e380128d39f8ef0a965d7e44e0c9a -size 1970472 diff --git a/build/torch29-cxx11-rocm63-x86_64-linux/_relu_rocm_86608d6.abi3.so b/build/torch29-cxx11-rocm63-x86_64-linux/_relu_rocm_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..365a04c8676505676ac02d8de5ebe663bc254934 --- /dev/null +++ b/build/torch29-cxx11-rocm63-x86_64-linux/_relu_rocm_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcd04082d166c4518e4a23a108da6c80e7f9d5a81e82175fafca2a58948dd32b +size 1970472 diff --git a/build/torch29-cxx11-rocm63-x86_64-linux/relu/__init__.py b/build/torch29-cxx11-rocm63-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch29-cxx11-rocm63-x86_64-linux/relu/__init__.py +++ b/build/torch29-cxx11-rocm63-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that diff --git a/build/torch29-cxx11-rocm64-x86_64-linux/_ops.py b/build/torch29-cxx11-rocm64-x86_64-linux/_ops.py index 6522586762fd33860e634154c091fa05059ddfe1..c1c20fe25d7594d8f980483a7a61a2d3ebeff18f 100644 --- a/build/torch29-cxx11-rocm64-x86_64-linux/_ops.py +++ b/build/torch29-cxx11-rocm64-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_rocm_6261c06 -ops = torch.ops._relu_rocm_6261c06 +from . import _relu_rocm_86608d6 +ops = torch.ops._relu_rocm_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_rocm_6261c06::{op_name}" + return f"_relu_rocm_86608d6::{op_name}" diff --git a/build/torch29-cxx11-rocm64-x86_64-linux/_relu_rocm_6261c06.abi3.so b/build/torch29-cxx11-rocm64-x86_64-linux/_relu_rocm_6261c06.abi3.so deleted file mode 100644 index fe783f5b7c98f0f03f37f21ffbd7dc7c3b6b25de..0000000000000000000000000000000000000000 --- a/build/torch29-cxx11-rocm64-x86_64-linux/_relu_rocm_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3a26f035ba427cb3a8c8b20210931ae6c26980a5295d45b4c6b92c0be7eef382 -size 1989248 diff --git a/build/torch29-cxx11-rocm64-x86_64-linux/_relu_rocm_86608d6.abi3.so b/build/torch29-cxx11-rocm64-x86_64-linux/_relu_rocm_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..3cf319aac4bb631cd29678954251bf4dea164f59 --- /dev/null +++ b/build/torch29-cxx11-rocm64-x86_64-linux/_relu_rocm_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca8e4f559549e0c39c348c7c3aa762debb712baf26ec020075345e5ef46301b4 +size 1989248 diff --git a/build/torch29-cxx11-rocm64-x86_64-linux/relu/__init__.py b/build/torch29-cxx11-rocm64-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch29-cxx11-rocm64-x86_64-linux/relu/__init__.py +++ b/build/torch29-cxx11-rocm64-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that diff --git a/build/torch29-cxx11-xpu20252-x86_64-linux/_ops.py b/build/torch29-cxx11-xpu20252-x86_64-linux/_ops.py index a045efb682ea904f9f35ac056d7a5de18ae067ce..d1875100934a1943f3b4167032e9fd7fb6085aa5 100644 --- a/build/torch29-cxx11-xpu20252-x86_64-linux/_ops.py +++ b/build/torch29-cxx11-xpu20252-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_xpu_6261c06 -ops = torch.ops._relu_xpu_6261c06 +from . import _relu_xpu_86608d6 +ops = torch.ops._relu_xpu_86608d6 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_xpu_6261c06::{op_name}" + return f"_relu_xpu_86608d6::{op_name}" diff --git a/build/torch29-cxx11-xpu20252-x86_64-linux/_relu_xpu_6261c06.abi3.so b/build/torch29-cxx11-xpu20252-x86_64-linux/_relu_xpu_6261c06.abi3.so deleted file mode 100644 index 1ce8be1882919c61119fc0b61920ff8f9fea4bb2..0000000000000000000000000000000000000000 --- a/build/torch29-cxx11-xpu20252-x86_64-linux/_relu_xpu_6261c06.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d12874e554a6955647bacb35738e09cd9a157f6203273163e48f19ab90449a9 -size 2048328 diff --git a/build/torch29-cxx11-xpu20252-x86_64-linux/_relu_xpu_86608d6.abi3.so b/build/torch29-cxx11-xpu20252-x86_64-linux/_relu_xpu_86608d6.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..19612e68161dd6a24907535a0876cdc0ee7b25d4 --- /dev/null +++ b/build/torch29-cxx11-xpu20252-x86_64-linux/_relu_xpu_86608d6.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d7285a53556bd94d45a0aed3c2407fd2e9645a44bee7e260c2b2323ce6a02ed +size 2048328 diff --git a/build/torch29-cxx11-xpu20252-x86_64-linux/metadata.json b/build/torch29-cxx11-xpu20252-x86_64-linux/metadata.json index a5381dd80836f863378b9f33a559815688de9287..b911d0a2549a35a1c65ab7e77d32e5aac23cd6ac 100644 --- a/build/torch29-cxx11-xpu20252-x86_64-linux/metadata.json +++ b/build/torch29-cxx11-xpu20252-x86_64-linux/metadata.json @@ -1,5 +1,8 @@ { "version": 1, "license": "Apache-2.0", - "python-depends": [] + "python-depends": [], + "backend": { + "type": "xpu" + } } \ No newline at end of file diff --git a/build/torch29-cxx11-xpu20252-x86_64-linux/relu/__init__.py b/build/torch29-cxx11-xpu20252-x86_64-linux/relu/__init__.py index 03dbc1afe1cf156661a2b1b22003cd5f599a0309..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 100644 --- a/build/torch29-cxx11-xpu20252-x86_64-linux/relu/__init__.py +++ b/build/torch29-cxx11-xpu20252-x86_64-linux/relu/__init__.py @@ -1,10 +1,10 @@ import ctypes +import importlib.util import sys - -import importlib from pathlib import Path from types import ModuleType + def _import_from_path(file_path: Path) -> ModuleType: # We cannot use the module name as-is, after adding it to `sys.modules`, # it would also be used for other imports. So, we make a module name that