diff --git a/.gitattributes b/.gitattributes index 3dc9c242730ee6666eb552158b0d78a6d870d7eb..ed1e61a0cfa988288b5569fa3d8d3461befb43a8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -670,3 +670,24 @@ build/torch212-cxx11-cu132-aarch64-linux/_relu_cuda_c835f43.abi3.so filter=lfs d build/torch210-metal-aarch64-darwin/_relu_metal_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text build/torch211-metal-aarch64-darwin/_relu_metal_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text build/torch212-metal-aarch64-darwin/_relu_metal_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch212-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch212-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch212-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch212-cxx11-cu132-x86_64-linux/_relu_cuda_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch212-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch212-cxx11-rocm72-x86_64-linux/_relu_rocm_c835f43.abi3.so filter=lfs diff=lfs merge=lfs -text +build/torch212-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.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 207019a25e1577c90803b346e75d936416d76319..ef391c5faba1eea41714803d5c7003c5e5a7aaa0 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_86f75d9 -ops = torch.ops._relu_cpu_86f75d9 +from . import _relu_cpu_c835f43 +ops = torch.ops._relu_cpu_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cpu_86f75d9::{op_name}" + return f"_relu_cpu_c835f43::{op_name}" diff --git a/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_86f75d9.abi3.so b/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_86f75d9.abi3.so deleted file mode 100644 index 1f3cfa552faa96d6f401db915e6e456d12f4a710..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b7cc80cc46d1aff30e11457e313d53b726935df0037832d9994f21a538973450 -size 1778080 diff --git a/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so b/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..5f0951bd7aa8f3af929547c16c406824d43546c2 --- /dev/null +++ b/build/torch210-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:218e3614d70e886a42f23ad0268c73063e3ae074d8e896ba5044cbb19b12faeb +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 536d57601a6b0c668249af800e3499b88e5cf9f7..9d899a925563eaef5f7abe1005c122508bf3ac72 100644 --- a/build/torch210-cxx11-cpu-x86_64-linux/metadata.json +++ b/build/torch210-cxx11-cpu-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_cpu_86f75d9", + "id": "_relu_cpu_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch210-cxx11-cu126-x86_64-linux/_ops.py b/build/torch210-cxx11-cu126-x86_64-linux/_ops.py index d53e16bc6c506d6c7ac66f51dc269751f376f9e9..c6034bae43081cd62632be08f3d37e50805748f6 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_86f75d9 -ops = torch.ops._relu_cuda_86f75d9 +from . import _relu_cuda_c835f43 +ops = torch.ops._relu_cuda_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cuda_86f75d9::{op_name}" + return f"_relu_cuda_c835f43::{op_name}" diff --git a/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_86f75d9.abi3.so b/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_86f75d9.abi3.so deleted file mode 100644 index 3e8807b77d23032bdcfb24cab9e7fb3ff5722d8e..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9dc7c62f1982ca2bb5794b5643d3fa36096e048c8f8144595e378922cf898420 -size 2019880 diff --git a/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so b/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..17db481978f7a4fa976dbd5a8fa017930c1ee54b --- /dev/null +++ b/build/torch210-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e02cad47c8b8c5fd2ec7824c0155192a9cab7d28e8a3fd416426bc2201620dad +size 2019880 diff --git a/build/torch210-cxx11-cu126-x86_64-linux/metadata.json b/build/torch210-cxx11-cu126-x86_64-linux/metadata.json index 15fe203ea43b0937a2c21ba0d701e84e3cb4ea14..fc27adcbba2e296a705bd9e57adbcdac0d31fcca 100644 --- a/build/torch210-cxx11-cu126-x86_64-linux/metadata.json +++ b/build/torch210-cxx11-cu126-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_cuda_86f75d9", + "id": "_relu_cuda_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch210-cxx11-cu128-x86_64-linux/_ops.py b/build/torch210-cxx11-cu128-x86_64-linux/_ops.py index d53e16bc6c506d6c7ac66f51dc269751f376f9e9..c6034bae43081cd62632be08f3d37e50805748f6 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_86f75d9 -ops = torch.ops._relu_cuda_86f75d9 +from . import _relu_cuda_c835f43 +ops = torch.ops._relu_cuda_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cuda_86f75d9::{op_name}" + return f"_relu_cuda_c835f43::{op_name}" diff --git a/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_86f75d9.abi3.so b/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_86f75d9.abi3.so deleted file mode 100644 index 228b8b2bedb82caf2aba558a1bbd85c05fc88dd8..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61b91a468260fa530dcffdcd714a2e2814fa136345089335488a9892d3b6545c -size 2111840 diff --git a/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_c835f43.abi3.so b/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..f506994f136167b4184a741922c6221477efafab --- /dev/null +++ b/build/torch210-cxx11-cu128-x86_64-linux/_relu_cuda_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:052f0e97101c87dc3e3840c86802c6db56d453ec5fbfc1f732e6d48708655bcc +size 2111840 diff --git a/build/torch210-cxx11-cu128-x86_64-linux/metadata.json b/build/torch210-cxx11-cu128-x86_64-linux/metadata.json index 0c08dec238a22e5a31d0acb513953b4092fcf5ca..111d18d3c70c5b31f7e765926d17f851f84b6462 100644 --- a/build/torch210-cxx11-cu128-x86_64-linux/metadata.json +++ b/build/torch210-cxx11-cu128-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_cuda_86f75d9", + "id": "_relu_cuda_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch210-cxx11-cu130-x86_64-linux/_ops.py b/build/torch210-cxx11-cu130-x86_64-linux/_ops.py index d53e16bc6c506d6c7ac66f51dc269751f376f9e9..c6034bae43081cd62632be08f3d37e50805748f6 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_86f75d9 -ops = torch.ops._relu_cuda_86f75d9 +from . import _relu_cuda_c835f43 +ops = torch.ops._relu_cuda_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cuda_86f75d9::{op_name}" + return f"_relu_cuda_c835f43::{op_name}" diff --git a/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_86f75d9.abi3.so b/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_86f75d9.abi3.so deleted file mode 100644 index a0b4493559f4429bfe5a55583bb3d8ba4b0635ce..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ecd4537451a23c665f097df511fc6da8416b9690f5fc7cd1795c8f4bdef3a852 -size 2126064 diff --git a/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so b/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..fade91cb27512c657462b01fad32e4efc6ee9065 --- /dev/null +++ b/build/torch210-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cf17e98cb44a2de25cbde66d8dcd160a4af04c513c47dd8654f49363e88af2f +size 2126064 diff --git a/build/torch210-cxx11-cu130-x86_64-linux/metadata.json b/build/torch210-cxx11-cu130-x86_64-linux/metadata.json index e748cda7987258ffeebb258dc4b35822a90e1252..eac2289b3055cf3415fdb0d559bb418f5432310e 100644 --- a/build/torch210-cxx11-cu130-x86_64-linux/metadata.json +++ b/build/torch210-cxx11-cu130-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_cuda_86f75d9", + "id": "_relu_cuda_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch210-cxx11-rocm70-x86_64-linux/_ops.py b/build/torch210-cxx11-rocm70-x86_64-linux/_ops.py index 6c305d35c449cb73334b30115cce43b08f473b4c..b3a46442a0dcd596c39b6812e3dd23f9d58a5cd3 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_86f75d9 -ops = torch.ops._relu_rocm_86f75d9 +from . import _relu_rocm_c835f43 +ops = torch.ops._relu_rocm_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_rocm_86f75d9::{op_name}" + return f"_relu_rocm_c835f43::{op_name}" diff --git a/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_86f75d9.abi3.so b/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_86f75d9.abi3.so deleted file mode 100644 index 1ce5453413d2c6602498dda9239dbe1c88e4013f..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2edf65b6610d3f43dd131eb5471fee6ed60ce316c3ce81ae08d4599fafc1c3f3 -size 1990368 diff --git a/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_c835f43.abi3.so b/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..58e701f60e30958b4b0430af2ce775e1b8d1ca6b --- /dev/null +++ b/build/torch210-cxx11-rocm70-x86_64-linux/_relu_rocm_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2cba876208078ad2d2b1e96b1488addb24cdc86c09c02e114925693191c5352 +size 2014944 diff --git a/build/torch210-cxx11-rocm70-x86_64-linux/metadata.json b/build/torch210-cxx11-rocm70-x86_64-linux/metadata.json index 59ea4da715645dba5d0a888d76ac515f561be02b..bbcda473efc02ec2c71b711ae8a2b30e29d87e54 100644 --- a/build/torch210-cxx11-rocm70-x86_64-linux/metadata.json +++ b/build/torch210-cxx11-rocm70-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_rocm_86f75d9", + "id": "_relu_rocm_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], @@ -10,10 +10,13 @@ "gfx1030", "gfx1100", "gfx1101", + "gfx1200", + "gfx1201", "gfx906", "gfx908", "gfx90a", - "gfx942" + "gfx942", + "gfx950" ] } } diff --git a/build/torch210-cxx11-rocm71-x86_64-linux/_ops.py b/build/torch210-cxx11-rocm71-x86_64-linux/_ops.py index 6c305d35c449cb73334b30115cce43b08f473b4c..b3a46442a0dcd596c39b6812e3dd23f9d58a5cd3 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_86f75d9 -ops = torch.ops._relu_rocm_86f75d9 +from . import _relu_rocm_c835f43 +ops = torch.ops._relu_rocm_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_rocm_86f75d9::{op_name}" + return f"_relu_rocm_c835f43::{op_name}" diff --git a/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_86f75d9.abi3.so b/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_86f75d9.abi3.so deleted file mode 100644 index 892f440d4ff45bdc3914bcb19e1249c75159b8d2..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7182dfe121c3076d3d557692392d30702a15af95a29b5d1c1cbcff346c2c398f -size 1990272 diff --git a/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so b/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..f1aa37a315be07af54d7658ef3ec43c5d3965cb6 --- /dev/null +++ b/build/torch210-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2650f6f3759f21c52c3d748f485b517c7bc9fc1a7a8290873bce295a26f03dc +size 2014848 diff --git a/build/torch210-cxx11-rocm71-x86_64-linux/metadata.json b/build/torch210-cxx11-rocm71-x86_64-linux/metadata.json index 59ea4da715645dba5d0a888d76ac515f561be02b..bbcda473efc02ec2c71b711ae8a2b30e29d87e54 100644 --- a/build/torch210-cxx11-rocm71-x86_64-linux/metadata.json +++ b/build/torch210-cxx11-rocm71-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_rocm_86f75d9", + "id": "_relu_rocm_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], @@ -10,10 +10,13 @@ "gfx1030", "gfx1100", "gfx1101", + "gfx1200", + "gfx1201", "gfx906", "gfx908", "gfx90a", - "gfx942" + "gfx942", + "gfx950" ] } } diff --git a/build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py b/build/torch210-cxx11-xpu20253-x86_64-linux/_ops.py index 5af2b8a1b5d81772f815b1af1b1b32f52a72e01d..f420b9b9393c217cec091c4e5554838427fa12d0 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_86f75d9 -ops = torch.ops._relu_xpu_86f75d9 +from . import _relu_xpu_c835f43 +ops = torch.ops._relu_xpu_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_xpu_86f75d9::{op_name}" + return f"_relu_xpu_c835f43::{op_name}" diff --git a/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_86f75d9.abi3.so b/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_86f75d9.abi3.so deleted file mode 100644 index 2caccc9bc04420871fdea7c28d46401ebc98e64f..0000000000000000000000000000000000000000 --- a/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d50db67d7f4f59ae21859af4df343f5235759ac4e28fcd5bfe5a4e5175153468 -size 2050448 diff --git a/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so b/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..4d46f7059b6fe5d67e14e5bcee302df149a233f1 --- /dev/null +++ b/build/torch210-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:970f4e19e42852e1b554e78ac9acca8597f8a458b7ebe4ae6eef8909b593f143 +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 7758323a486dceb30ef362d7c7296aea81cc1432..da21d147372a502c94f31ed3737aa49536b32a12 100644 --- a/build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json +++ b/build/torch210-cxx11-xpu20253-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_xpu_86f75d9", + "id": "_relu_xpu_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch211-cxx11-cpu-x86_64-linux/_ops.py b/build/torch211-cxx11-cpu-x86_64-linux/_ops.py index 207019a25e1577c90803b346e75d936416d76319..ef391c5faba1eea41714803d5c7003c5e5a7aaa0 100644 --- a/build/torch211-cxx11-cpu-x86_64-linux/_ops.py +++ b/build/torch211-cxx11-cpu-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_cpu_86f75d9 -ops = torch.ops._relu_cpu_86f75d9 +from . import _relu_cpu_c835f43 +ops = torch.ops._relu_cpu_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cpu_86f75d9::{op_name}" + return f"_relu_cpu_c835f43::{op_name}" diff --git a/build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86f75d9.abi3.so b/build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86f75d9.abi3.so deleted file mode 100644 index 0c623cfd0d1ddc306fa6933ba25ac219396b6d08..0000000000000000000000000000000000000000 --- a/build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:599ede48ee5cb03357a062015b00916c972a36519e383e46b581c9d091793757 -size 1778080 diff --git a/build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so b/build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..c895cdbd40c3de29d12e72793d9b053ec2e40801 --- /dev/null +++ b/build/torch211-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73462bb7804c1244a103566f75d42b66e547e3f2e08e69201d0aec0ce2395db8 +size 1778080 diff --git a/build/torch211-cxx11-cpu-x86_64-linux/metadata.json b/build/torch211-cxx11-cpu-x86_64-linux/metadata.json index 536d57601a6b0c668249af800e3499b88e5cf9f7..9d899a925563eaef5f7abe1005c122508bf3ac72 100644 --- a/build/torch211-cxx11-cpu-x86_64-linux/metadata.json +++ b/build/torch211-cxx11-cpu-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_cpu_86f75d9", + "id": "_relu_cpu_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch211-cxx11-cu126-x86_64-linux/_ops.py b/build/torch211-cxx11-cu126-x86_64-linux/_ops.py index d53e16bc6c506d6c7ac66f51dc269751f376f9e9..c6034bae43081cd62632be08f3d37e50805748f6 100644 --- a/build/torch211-cxx11-cu126-x86_64-linux/_ops.py +++ b/build/torch211-cxx11-cu126-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_cuda_86f75d9 -ops = torch.ops._relu_cuda_86f75d9 +from . import _relu_cuda_c835f43 +ops = torch.ops._relu_cuda_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cuda_86f75d9::{op_name}" + return f"_relu_cuda_c835f43::{op_name}" diff --git a/build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86f75d9.abi3.so b/build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86f75d9.abi3.so deleted file mode 100644 index 2bbdffa3c48de856c2146d0930613151f63d7946..0000000000000000000000000000000000000000 --- a/build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e503e039f6b6649dc7840192a5bcba6424adbd77c446cfd6d361163b750d0d1b -size 2012824 diff --git a/build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so b/build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..ed896c5acfd668d70945a2d46d16970fb2231046 --- /dev/null +++ b/build/torch211-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24440072b13ceccd4f09b73a1ef5eeef3e055a865bd367b4460ad6b683c460a3 +size 2012824 diff --git a/build/torch211-cxx11-cu126-x86_64-linux/metadata.json b/build/torch211-cxx11-cu126-x86_64-linux/metadata.json index 15fe203ea43b0937a2c21ba0d701e84e3cb4ea14..fc27adcbba2e296a705bd9e57adbcdac0d31fcca 100644 --- a/build/torch211-cxx11-cu126-x86_64-linux/metadata.json +++ b/build/torch211-cxx11-cu126-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_cuda_86f75d9", + "id": "_relu_cuda_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch211-cxx11-cu128-x86_64-linux/_ops.py b/build/torch211-cxx11-cu128-x86_64-linux/_ops.py index d53e16bc6c506d6c7ac66f51dc269751f376f9e9..c6034bae43081cd62632be08f3d37e50805748f6 100644 --- a/build/torch211-cxx11-cu128-x86_64-linux/_ops.py +++ b/build/torch211-cxx11-cu128-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_cuda_86f75d9 -ops = torch.ops._relu_cuda_86f75d9 +from . import _relu_cuda_c835f43 +ops = torch.ops._relu_cuda_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cuda_86f75d9::{op_name}" + return f"_relu_cuda_c835f43::{op_name}" diff --git a/build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86f75d9.abi3.so b/build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86f75d9.abi3.so deleted file mode 100644 index f7a5bbc2aadea8ca21753824ec6b0c9853e8bd6a..0000000000000000000000000000000000000000 --- a/build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b55fcb249a783212cb03f2fcd2778c8cca6d828b17ab4f40b556d13dcbb68f4b -size 2100680 diff --git a/build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_c835f43.abi3.so b/build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..2d9ed229ad144fd476ceb3583f96bd9bcfa431d6 --- /dev/null +++ b/build/torch211-cxx11-cu128-x86_64-linux/_relu_cuda_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d083a034ec3201232c5c6d60075aa58cd308fa00e9783e9755c3497d7fe9b132 +size 2100680 diff --git a/build/torch211-cxx11-cu128-x86_64-linux/metadata.json b/build/torch211-cxx11-cu128-x86_64-linux/metadata.json index 0c08dec238a22e5a31d0acb513953b4092fcf5ca..111d18d3c70c5b31f7e765926d17f851f84b6462 100644 --- a/build/torch211-cxx11-cu128-x86_64-linux/metadata.json +++ b/build/torch211-cxx11-cu128-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_cuda_86f75d9", + "id": "_relu_cuda_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch211-cxx11-cu130-x86_64-linux/_ops.py b/build/torch211-cxx11-cu130-x86_64-linux/_ops.py index d53e16bc6c506d6c7ac66f51dc269751f376f9e9..c6034bae43081cd62632be08f3d37e50805748f6 100644 --- a/build/torch211-cxx11-cu130-x86_64-linux/_ops.py +++ b/build/torch211-cxx11-cu130-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_cuda_86f75d9 -ops = torch.ops._relu_cuda_86f75d9 +from . import _relu_cuda_c835f43 +ops = torch.ops._relu_cuda_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_cuda_86f75d9::{op_name}" + return f"_relu_cuda_c835f43::{op_name}" diff --git a/build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86f75d9.abi3.so b/build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86f75d9.abi3.so deleted file mode 100644 index 2a837ee2a29e2d69c42adfee6a462a226f505bac..0000000000000000000000000000000000000000 --- a/build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d893954b3d44848a5f552cd2bb2c7506c40de84bd48ccd8da72c4524b52872d -size 2119008 diff --git a/build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so b/build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..ca2dc22925ca05acbea960d0536347cc621dd38d --- /dev/null +++ b/build/torch211-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5659dfc9cb0f93075d34ab633647cac9d20c8b76cd2a6770fcdc48912e0a58b7 +size 2119008 diff --git a/build/torch211-cxx11-cu130-x86_64-linux/metadata.json b/build/torch211-cxx11-cu130-x86_64-linux/metadata.json index e748cda7987258ffeebb258dc4b35822a90e1252..eac2289b3055cf3415fdb0d559bb418f5432310e 100644 --- a/build/torch211-cxx11-cu130-x86_64-linux/metadata.json +++ b/build/torch211-cxx11-cu130-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_cuda_86f75d9", + "id": "_relu_cuda_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch211-cxx11-rocm71-x86_64-linux/_ops.py b/build/torch211-cxx11-rocm71-x86_64-linux/_ops.py index 6c305d35c449cb73334b30115cce43b08f473b4c..b3a46442a0dcd596c39b6812e3dd23f9d58a5cd3 100644 --- a/build/torch211-cxx11-rocm71-x86_64-linux/_ops.py +++ b/build/torch211-cxx11-rocm71-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_rocm_86f75d9 -ops = torch.ops._relu_rocm_86f75d9 +from . import _relu_rocm_c835f43 +ops = torch.ops._relu_rocm_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_rocm_86f75d9::{op_name}" + return f"_relu_rocm_c835f43::{op_name}" diff --git a/build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_86f75d9.abi3.so b/build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_86f75d9.abi3.so deleted file mode 100644 index 6379c059b9226c1b688d956ea7db7225f00032e9..0000000000000000000000000000000000000000 --- a/build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9924d8ff0e4013d954b0923141371ef866543af3af289a25d2dd41fd29e2b1b4 -size 1978400 diff --git a/build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so b/build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..9013dac06ca0a36eda5772e08bc2dd86d6a08402 --- /dev/null +++ b/build/torch211-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbb44952fab33ce90fa750696a1bf8e301f5b3566b8fed6917af321f511714f2 +size 2002976 diff --git a/build/torch211-cxx11-rocm71-x86_64-linux/metadata.json b/build/torch211-cxx11-rocm71-x86_64-linux/metadata.json index 59ea4da715645dba5d0a888d76ac515f561be02b..bbcda473efc02ec2c71b711ae8a2b30e29d87e54 100644 --- a/build/torch211-cxx11-rocm71-x86_64-linux/metadata.json +++ b/build/torch211-cxx11-rocm71-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_rocm_86f75d9", + "id": "_relu_rocm_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], @@ -10,10 +10,13 @@ "gfx1030", "gfx1100", "gfx1101", + "gfx1200", + "gfx1201", "gfx906", "gfx908", "gfx90a", - "gfx942" + "gfx942", + "gfx950" ] } } diff --git a/build/torch211-cxx11-rocm72-x86_64-linux/_ops.py b/build/torch211-cxx11-rocm72-x86_64-linux/_ops.py index 6c305d35c449cb73334b30115cce43b08f473b4c..b3a46442a0dcd596c39b6812e3dd23f9d58a5cd3 100644 --- a/build/torch211-cxx11-rocm72-x86_64-linux/_ops.py +++ b/build/torch211-cxx11-rocm72-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_rocm_86f75d9 -ops = torch.ops._relu_rocm_86f75d9 +from . import _relu_rocm_c835f43 +ops = torch.ops._relu_rocm_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_rocm_86f75d9::{op_name}" + return f"_relu_rocm_c835f43::{op_name}" diff --git a/build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_86f75d9.abi3.so b/build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_86f75d9.abi3.so deleted file mode 100644 index dfb1ac0d4b697b10cef642136e2de9deb7877d0b..0000000000000000000000000000000000000000 --- a/build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6dee4bd9da1c5fc4a6562c00752619062db421cc5034bd612a3e7a68ff00b242 -size 1977568 diff --git a/build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_c835f43.abi3.so b/build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..bfa1e0896e6a4012d0153d31743e7b6498a670d3 --- /dev/null +++ b/build/torch211-cxx11-rocm72-x86_64-linux/_relu_rocm_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14146c033a013136559a21fa5f6a49bf4ae1c844377349a6161339269d9c439c +size 2002144 diff --git a/build/torch211-cxx11-rocm72-x86_64-linux/metadata.json b/build/torch211-cxx11-rocm72-x86_64-linux/metadata.json index 59ea4da715645dba5d0a888d76ac515f561be02b..bbcda473efc02ec2c71b711ae8a2b30e29d87e54 100644 --- a/build/torch211-cxx11-rocm72-x86_64-linux/metadata.json +++ b/build/torch211-cxx11-rocm72-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_rocm_86f75d9", + "id": "_relu_rocm_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], @@ -10,10 +10,13 @@ "gfx1030", "gfx1100", "gfx1101", + "gfx1200", + "gfx1201", "gfx906", "gfx908", "gfx90a", - "gfx942" + "gfx942", + "gfx950" ] } } diff --git a/build/torch211-cxx11-xpu20253-x86_64-linux/_ops.py b/build/torch211-cxx11-xpu20253-x86_64-linux/_ops.py index 5af2b8a1b5d81772f815b1af1b1b32f52a72e01d..f420b9b9393c217cec091c4e5554838427fa12d0 100644 --- a/build/torch211-cxx11-xpu20253-x86_64-linux/_ops.py +++ b/build/torch211-cxx11-xpu20253-x86_64-linux/_ops.py @@ -1,9 +1,9 @@ import torch -from . import _relu_xpu_86f75d9 -ops = torch.ops._relu_xpu_86f75d9 +from . import _relu_xpu_c835f43 +ops = torch.ops._relu_xpu_c835f43 def add_op_namespace_prefix(op_name: str): """ Prefix op by namespace. """ - return f"_relu_xpu_86f75d9::{op_name}" + return f"_relu_xpu_c835f43::{op_name}" diff --git a/build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_86f75d9.abi3.so b/build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_86f75d9.abi3.so deleted file mode 100644 index 56beafb61f18d29a030ebed97ac865c31e08dbf7..0000000000000000000000000000000000000000 --- a/build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_86f75d9.abi3.so +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2507ca982881fae6918665b6b75b8572c950a4fd553fe4b48a185df8e94eaeac -size 2050448 diff --git a/build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so b/build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..fe4350be934a2cb0b0877a858202cf8bca16a3a9 --- /dev/null +++ b/build/torch211-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49676da5e6a942588bf08c5841e056f61c87749f3d8184623a17e6c085c804ca +size 2050448 diff --git a/build/torch211-cxx11-xpu20253-x86_64-linux/metadata.json b/build/torch211-cxx11-xpu20253-x86_64-linux/metadata.json index 7758323a486dceb30ef362d7c7296aea81cc1432..da21d147372a502c94f31ed3737aa49536b32a12 100644 --- a/build/torch211-cxx11-xpu20253-x86_64-linux/metadata.json +++ b/build/torch211-cxx11-xpu20253-x86_64-linux/metadata.json @@ -1,6 +1,6 @@ { "name": "relu", - "id": "_relu_xpu_86f75d9", + "id": "_relu_xpu_c835f43", "version": 1, "license": "Apache-2.0", "python-depends": [], diff --git a/build/torch212-cxx11-cpu-x86_64-linux/__init__.py b/build/torch212-cxx11-cpu-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch212-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/torch212-cxx11-cpu-x86_64-linux/_ops.py b/build/torch212-cxx11-cpu-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..ef391c5faba1eea41714803d5c7003c5e5a7aaa0 --- /dev/null +++ b/build/torch212-cxx11-cpu-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_cpu_c835f43 +ops = torch.ops._relu_cpu_c835f43 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_cpu_c835f43::{op_name}" diff --git a/build/torch212-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so b/build/torch212-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..661f2d305640951e312433269d7a68adb41e2afd --- /dev/null +++ b/build/torch212-cxx11-cpu-x86_64-linux/_relu_cpu_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27936e490927c91befa9e15325c3c48914e13c991cee66bda44a90e8f55f8646 +size 1778096 diff --git a/build/torch212-cxx11-cpu-x86_64-linux/layers/__init__.py b/build/torch212-cxx11-cpu-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch212-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/torch212-cxx11-cpu-x86_64-linux/metadata.json b/build/torch212-cxx11-cpu-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..9d899a925563eaef5f7abe1005c122508bf3ac72 --- /dev/null +++ b/build/torch212-cxx11-cpu-x86_64-linux/metadata.json @@ -0,0 +1,10 @@ +{ + "name": "relu", + "id": "_relu_cpu_c835f43", + "version": 1, + "license": "Apache-2.0", + "python-depends": [], + "backend": { + "type": "cpu" + } +} diff --git a/build/torch212-cxx11-cpu-x86_64-linux/relu/__init__.py b/build/torch212-cxx11-cpu-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch212-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/torch212-cxx11-cu126-x86_64-linux/__init__.py b/build/torch212-cxx11-cu126-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch212-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/torch212-cxx11-cu126-x86_64-linux/_ops.py b/build/torch212-cxx11-cu126-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..c6034bae43081cd62632be08f3d37e50805748f6 --- /dev/null +++ b/build/torch212-cxx11-cu126-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_cuda_c835f43 +ops = torch.ops._relu_cuda_c835f43 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_cuda_c835f43::{op_name}" diff --git a/build/torch212-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so b/build/torch212-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..21b4e1444342fcde4b0a6f8ef7575f796ac4ae89 --- /dev/null +++ b/build/torch212-cxx11-cu126-x86_64-linux/_relu_cuda_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08be559ed8d8568b31d1d1ed4657d5c870b1f8f2342c002bbb7b1ad9b3725f25 +size 2014248 diff --git a/build/torch212-cxx11-cu126-x86_64-linux/layers/__init__.py b/build/torch212-cxx11-cu126-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch212-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/torch212-cxx11-cu126-x86_64-linux/metadata.json b/build/torch212-cxx11-cu126-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..fc27adcbba2e296a705bd9e57adbcdac0d31fcca --- /dev/null +++ b/build/torch212-cxx11-cu126-x86_64-linux/metadata.json @@ -0,0 +1,20 @@ +{ + "name": "relu", + "id": "_relu_cuda_c835f43", + "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/torch212-cxx11-cu126-x86_64-linux/relu/__init__.py b/build/torch212-cxx11-cu126-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch212-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/torch212-cxx11-cu130-x86_64-linux/__init__.py b/build/torch212-cxx11-cu130-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch212-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/torch212-cxx11-cu130-x86_64-linux/_ops.py b/build/torch212-cxx11-cu130-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..c6034bae43081cd62632be08f3d37e50805748f6 --- /dev/null +++ b/build/torch212-cxx11-cu130-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_cuda_c835f43 +ops = torch.ops._relu_cuda_c835f43 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_cuda_c835f43::{op_name}" diff --git a/build/torch212-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so b/build/torch212-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..3fa3e84bcd61421f12881bfe62f3ead7c9fd9acb --- /dev/null +++ b/build/torch212-cxx11-cu130-x86_64-linux/_relu_cuda_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88068776183a67be6b2d85196d95f0f2d5944e0be5955ca37b40fd54a6bffc88 +size 2116312 diff --git a/build/torch212-cxx11-cu130-x86_64-linux/layers/__init__.py b/build/torch212-cxx11-cu130-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch212-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/torch212-cxx11-cu130-x86_64-linux/metadata.json b/build/torch212-cxx11-cu130-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..eac2289b3055cf3415fdb0d559bb418f5432310e --- /dev/null +++ b/build/torch212-cxx11-cu130-x86_64-linux/metadata.json @@ -0,0 +1,21 @@ +{ + "name": "relu", + "id": "_relu_cuda_c835f43", + "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/torch212-cxx11-cu130-x86_64-linux/relu/__init__.py b/build/torch212-cxx11-cu130-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch212-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/torch212-cxx11-cu132-x86_64-linux/__init__.py b/build/torch212-cxx11-cu132-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch212-cxx11-cu132-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/torch212-cxx11-cu132-x86_64-linux/_ops.py b/build/torch212-cxx11-cu132-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..c6034bae43081cd62632be08f3d37e50805748f6 --- /dev/null +++ b/build/torch212-cxx11-cu132-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_cuda_c835f43 +ops = torch.ops._relu_cuda_c835f43 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_cuda_c835f43::{op_name}" diff --git a/build/torch212-cxx11-cu132-x86_64-linux/_relu_cuda_c835f43.abi3.so b/build/torch212-cxx11-cu132-x86_64-linux/_relu_cuda_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..3f94b14227c4fd2703624edc1058a3441fba22cb --- /dev/null +++ b/build/torch212-cxx11-cu132-x86_64-linux/_relu_cuda_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7278e12c7abbfc0a656f4ef3e6449e4c881cafc443fcbc383ba08b919d5386ff +size 2175912 diff --git a/build/torch212-cxx11-cu132-x86_64-linux/layers/__init__.py b/build/torch212-cxx11-cu132-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch212-cxx11-cu132-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/torch212-cxx11-cu132-x86_64-linux/metadata.json b/build/torch212-cxx11-cu132-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..eac2289b3055cf3415fdb0d559bb418f5432310e --- /dev/null +++ b/build/torch212-cxx11-cu132-x86_64-linux/metadata.json @@ -0,0 +1,21 @@ +{ + "name": "relu", + "id": "_relu_cuda_c835f43", + "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/torch212-cxx11-cu132-x86_64-linux/relu/__init__.py b/build/torch212-cxx11-cu132-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch212-cxx11-cu132-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/torch212-cxx11-rocm71-x86_64-linux/__init__.py b/build/torch212-cxx11-rocm71-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch212-cxx11-rocm71-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/torch212-cxx11-rocm71-x86_64-linux/_ops.py b/build/torch212-cxx11-rocm71-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..b3a46442a0dcd596c39b6812e3dd23f9d58a5cd3 --- /dev/null +++ b/build/torch212-cxx11-rocm71-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_rocm_c835f43 +ops = torch.ops._relu_rocm_c835f43 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_rocm_c835f43::{op_name}" diff --git a/build/torch212-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so b/build/torch212-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..c62854bbd24476ac4876a90f3bbc7f01a3eb9db7 --- /dev/null +++ b/build/torch212-cxx11-rocm71-x86_64-linux/_relu_rocm_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ee567488e46fdaefd56d4dba37088b0f98620fe1d0ad42649a72dca9f4d7e39 +size 2011344 diff --git a/build/torch212-cxx11-rocm71-x86_64-linux/layers/__init__.py b/build/torch212-cxx11-rocm71-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch212-cxx11-rocm71-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/torch212-cxx11-rocm71-x86_64-linux/metadata.json b/build/torch212-cxx11-rocm71-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..bbcda473efc02ec2c71b711ae8a2b30e29d87e54 --- /dev/null +++ b/build/torch212-cxx11-rocm71-x86_64-linux/metadata.json @@ -0,0 +1,22 @@ +{ + "name": "relu", + "id": "_relu_rocm_c835f43", + "version": 1, + "license": "Apache-2.0", + "python-depends": [], + "backend": { + "type": "rocm", + "archs": [ + "gfx1030", + "gfx1100", + "gfx1101", + "gfx1200", + "gfx1201", + "gfx906", + "gfx908", + "gfx90a", + "gfx942", + "gfx950" + ] + } +} diff --git a/build/torch212-cxx11-rocm71-x86_64-linux/relu/__init__.py b/build/torch212-cxx11-rocm71-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch212-cxx11-rocm71-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/torch212-cxx11-rocm72-x86_64-linux/__init__.py b/build/torch212-cxx11-rocm72-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch212-cxx11-rocm72-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/torch212-cxx11-rocm72-x86_64-linux/_ops.py b/build/torch212-cxx11-rocm72-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..b3a46442a0dcd596c39b6812e3dd23f9d58a5cd3 --- /dev/null +++ b/build/torch212-cxx11-rocm72-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_rocm_c835f43 +ops = torch.ops._relu_rocm_c835f43 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_rocm_c835f43::{op_name}" diff --git a/build/torch212-cxx11-rocm72-x86_64-linux/_relu_rocm_c835f43.abi3.so b/build/torch212-cxx11-rocm72-x86_64-linux/_relu_rocm_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..dfef224962982fe44a8f46fcc1a414dbdc347bd2 --- /dev/null +++ b/build/torch212-cxx11-rocm72-x86_64-linux/_relu_rocm_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b1615f1658cfb08895d50c6b2c64f503a0cffcf2233d3ef27753bbe371470c3 +size 2010512 diff --git a/build/torch212-cxx11-rocm72-x86_64-linux/layers/__init__.py b/build/torch212-cxx11-rocm72-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch212-cxx11-rocm72-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/torch212-cxx11-rocm72-x86_64-linux/metadata.json b/build/torch212-cxx11-rocm72-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..bbcda473efc02ec2c71b711ae8a2b30e29d87e54 --- /dev/null +++ b/build/torch212-cxx11-rocm72-x86_64-linux/metadata.json @@ -0,0 +1,22 @@ +{ + "name": "relu", + "id": "_relu_rocm_c835f43", + "version": 1, + "license": "Apache-2.0", + "python-depends": [], + "backend": { + "type": "rocm", + "archs": [ + "gfx1030", + "gfx1100", + "gfx1101", + "gfx1200", + "gfx1201", + "gfx906", + "gfx908", + "gfx90a", + "gfx942", + "gfx950" + ] + } +} diff --git a/build/torch212-cxx11-rocm72-x86_64-linux/relu/__init__.py b/build/torch212-cxx11-rocm72-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch212-cxx11-rocm72-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/torch212-cxx11-xpu20253-x86_64-linux/__init__.py b/build/torch212-cxx11-xpu20253-x86_64-linux/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..1034928e8aa6d9cf8c85742c404d42d77ab38514 --- /dev/null +++ b/build/torch212-cxx11-xpu20253-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/torch212-cxx11-xpu20253-x86_64-linux/_ops.py b/build/torch212-cxx11-xpu20253-x86_64-linux/_ops.py new file mode 100644 index 0000000000000000000000000000000000000000..f420b9b9393c217cec091c4e5554838427fa12d0 --- /dev/null +++ b/build/torch212-cxx11-xpu20253-x86_64-linux/_ops.py @@ -0,0 +1,9 @@ +import torch +from . import _relu_xpu_c835f43 +ops = torch.ops._relu_xpu_c835f43 + +def add_op_namespace_prefix(op_name: str): + """ + Prefix op by namespace. + """ + return f"_relu_xpu_c835f43::{op_name}" diff --git a/build/torch212-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so b/build/torch212-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so new file mode 100644 index 0000000000000000000000000000000000000000..aef298f990b7db1f635f42ea6d434c6976b67d7e --- /dev/null +++ b/build/torch212-cxx11-xpu20253-x86_64-linux/_relu_xpu_c835f43.abi3.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00e80079d8cdb5a78f725bf78a7c2d72b184fe1d569e1995bcf40bbfae39a91c +size 2050464 diff --git a/build/torch212-cxx11-xpu20253-x86_64-linux/layers/__init__.py b/build/torch212-cxx11-xpu20253-x86_64-linux/layers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..6105a19101b9f01a5ed9f061f94cc92f3c3ab157 --- /dev/null +++ b/build/torch212-cxx11-xpu20253-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/torch212-cxx11-xpu20253-x86_64-linux/metadata.json b/build/torch212-cxx11-xpu20253-x86_64-linux/metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..da21d147372a502c94f31ed3737aa49536b32a12 --- /dev/null +++ b/build/torch212-cxx11-xpu20253-x86_64-linux/metadata.json @@ -0,0 +1,10 @@ +{ + "name": "relu", + "id": "_relu_xpu_c835f43", + "version": 1, + "license": "Apache-2.0", + "python-depends": [], + "backend": { + "type": "xpu" + } +} diff --git a/build/torch212-cxx11-xpu20253-x86_64-linux/relu/__init__.py b/build/torch212-cxx11-xpu20253-x86_64-linux/relu/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a9b2672c1cd85b74c1b3ded0fc0b2100e1aeac23 --- /dev/null +++ b/build/torch212-cxx11-xpu20253-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")))