Kernels
kernels-bot commited on
Commit
12e3386
·
verified ·
1 Parent(s): 653ebf7

Uploaded using `kernel-builder`.

Browse files
Files changed (34) hide show
  1. .gitattributes +9 -0
  2. build/torch210-cxx11-cu126-x86_64-linux/_ops.py +3 -3
  3. build/torch210-cxx11-cu126-x86_64-linux/{_yoso_cuda_86f75d9.abi3.so → _yoso_cuda_ead89ac.abi3.so} +1 -1
  4. build/torch210-cxx11-cu126-x86_64-linux/metadata.json +1 -1
  5. build/torch210-cxx11-cu128-x86_64-linux/_ops.py +3 -3
  6. build/{torch211-cxx11-cu128-x86_64-linux/_yoso_cuda_86f75d9.abi3.so → torch210-cxx11-cu128-x86_64-linux/_yoso_cuda_ead89ac.abi3.so} +1 -1
  7. build/torch210-cxx11-cu128-x86_64-linux/metadata.json +1 -1
  8. build/torch210-cxx11-cu130-x86_64-linux/_ops.py +3 -3
  9. build/{torch211-cxx11-cu130-x86_64-linux/_yoso_cuda_86f75d9.abi3.so → torch210-cxx11-cu130-x86_64-linux/_yoso_cuda_ead89ac.abi3.so} +1 -1
  10. build/torch210-cxx11-cu130-x86_64-linux/metadata.json +1 -1
  11. build/torch211-cxx11-cu126-x86_64-linux/_ops.py +3 -3
  12. build/torch211-cxx11-cu126-x86_64-linux/{_yoso_cuda_86f75d9.abi3.so → _yoso_cuda_ead89ac.abi3.so} +1 -1
  13. build/torch211-cxx11-cu126-x86_64-linux/metadata.json +1 -1
  14. build/torch211-cxx11-cu128-x86_64-linux/_ops.py +3 -3
  15. build/{torch210-cxx11-cu128-x86_64-linux/_yoso_cuda_86f75d9.abi3.so → torch211-cxx11-cu128-x86_64-linux/_yoso_cuda_ead89ac.abi3.so} +1 -1
  16. build/torch211-cxx11-cu128-x86_64-linux/metadata.json +1 -1
  17. build/torch211-cxx11-cu130-x86_64-linux/_ops.py +3 -3
  18. build/{torch210-cxx11-cu130-x86_64-linux/_yoso_cuda_86f75d9.abi3.so → torch211-cxx11-cu130-x86_64-linux/_yoso_cuda_ead89ac.abi3.so} +1 -1
  19. build/torch211-cxx11-cu130-x86_64-linux/metadata.json +1 -1
  20. build/torch212-cxx11-cu126-x86_64-linux/__init__.py +11 -0
  21. build/torch212-cxx11-cu126-x86_64-linux/_ops.py +9 -0
  22. build/torch212-cxx11-cu126-x86_64-linux/_yoso_cuda_ead89ac.abi3.so +3 -0
  23. build/torch212-cxx11-cu126-x86_64-linux/metadata.json +15 -0
  24. build/torch212-cxx11-cu126-x86_64-linux/yoso/__init__.py +26 -0
  25. build/torch212-cxx11-cu130-x86_64-linux/__init__.py +11 -0
  26. build/torch212-cxx11-cu130-x86_64-linux/_ops.py +9 -0
  27. build/torch212-cxx11-cu130-x86_64-linux/_yoso_cuda_ead89ac.abi3.so +3 -0
  28. build/torch212-cxx11-cu130-x86_64-linux/metadata.json +17 -0
  29. build/torch212-cxx11-cu130-x86_64-linux/yoso/__init__.py +26 -0
  30. build/torch212-cxx11-cu132-x86_64-linux/__init__.py +11 -0
  31. build/torch212-cxx11-cu132-x86_64-linux/_ops.py +9 -0
  32. build/torch212-cxx11-cu132-x86_64-linux/_yoso_cuda_ead89ac.abi3.so +3 -0
  33. build/torch212-cxx11-cu132-x86_64-linux/metadata.json +17 -0
  34. build/torch212-cxx11-cu132-x86_64-linux/yoso/__init__.py +26 -0
.gitattributes CHANGED
@@ -147,3 +147,12 @@ build/torch210-cxx11-cu130-aarch64-linux/_yoso_cuda_86f75d9.abi3.so filter=lfs d
147
  build/torch211-cxx11-cu126-aarch64-linux/_yoso_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
148
  build/torch211-cxx11-cu128-aarch64-linux/_yoso_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
149
  build/torch211-cxx11-cu130-aarch64-linux/_yoso_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
147
  build/torch211-cxx11-cu126-aarch64-linux/_yoso_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
148
  build/torch211-cxx11-cu128-aarch64-linux/_yoso_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
149
  build/torch211-cxx11-cu130-aarch64-linux/_yoso_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
150
+ build/torch210-cxx11-cu126-x86_64-linux/_yoso_cuda_ead89ac.abi3.so filter=lfs diff=lfs merge=lfs -text
151
+ build/torch210-cxx11-cu128-x86_64-linux/_yoso_cuda_ead89ac.abi3.so filter=lfs diff=lfs merge=lfs -text
152
+ build/torch210-cxx11-cu130-x86_64-linux/_yoso_cuda_ead89ac.abi3.so filter=lfs diff=lfs merge=lfs -text
153
+ build/torch211-cxx11-cu126-x86_64-linux/_yoso_cuda_ead89ac.abi3.so filter=lfs diff=lfs merge=lfs -text
154
+ build/torch211-cxx11-cu128-x86_64-linux/_yoso_cuda_ead89ac.abi3.so filter=lfs diff=lfs merge=lfs -text
155
+ build/torch211-cxx11-cu130-x86_64-linux/_yoso_cuda_ead89ac.abi3.so filter=lfs diff=lfs merge=lfs -text
156
+ build/torch212-cxx11-cu126-x86_64-linux/_yoso_cuda_ead89ac.abi3.so filter=lfs diff=lfs merge=lfs -text
157
+ build/torch212-cxx11-cu130-x86_64-linux/_yoso_cuda_ead89ac.abi3.so filter=lfs diff=lfs merge=lfs -text
158
+ build/torch212-cxx11-cu132-x86_64-linux/_yoso_cuda_ead89ac.abi3.so filter=lfs diff=lfs merge=lfs -text
build/torch210-cxx11-cu126-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _yoso_cuda_86f75d9
3
- ops = torch.ops._yoso_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_yoso_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _yoso_cuda_ead89ac
3
+ ops = torch.ops._yoso_cuda_ead89ac
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_yoso_cuda_ead89ac::{op_name}"
build/torch210-cxx11-cu126-x86_64-linux/{_yoso_cuda_86f75d9.abi3.so → _yoso_cuda_ead89ac.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dc1573d5598709c3fc3ade8bbb23bf745330b958b088289112f5c15f1de22d8d
3
  size 2498248
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87f3281a5c5c25c3425408829d04832aff3a13ca5d184bc92d0b593243ca9b76
3
  size 2498248
build/torch210-cxx11-cu126-x86_64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "yoso",
3
- "id": "_yoso_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "yoso",
3
+ "id": "_yoso_cuda_ead89ac",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch210-cxx11-cu128-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _yoso_cuda_86f75d9
3
- ops = torch.ops._yoso_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_yoso_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _yoso_cuda_ead89ac
3
+ ops = torch.ops._yoso_cuda_ead89ac
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_yoso_cuda_ead89ac::{op_name}"
build/{torch211-cxx11-cu128-x86_64-linux/_yoso_cuda_86f75d9.abi3.so → torch210-cxx11-cu128-x86_64-linux/_yoso_cuda_ead89ac.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:33e3a31011e05d6eeae02531658bacfe91e0c10c91aa9a34084f34b5ab204ac6
3
  size 3040824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5a6c4439eb87043dc3713915d6592fe11fb73860d9056b93cda9b19024e6fd1
3
  size 3040824
build/torch210-cxx11-cu128-x86_64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "yoso",
3
- "id": "_yoso_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "yoso",
3
+ "id": "_yoso_cuda_ead89ac",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch210-cxx11-cu130-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _yoso_cuda_86f75d9
3
- ops = torch.ops._yoso_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_yoso_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _yoso_cuda_ead89ac
3
+ ops = torch.ops._yoso_cuda_ead89ac
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_yoso_cuda_ead89ac::{op_name}"
build/{torch211-cxx11-cu130-x86_64-linux/_yoso_cuda_86f75d9.abi3.so → torch210-cxx11-cu130-x86_64-linux/_yoso_cuda_ead89ac.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3c300d1cd463de2f09995c2ac44dd18ca51ccff418a594b744f7b90bdb5cc1e5
3
  size 3098576
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee22601e39e29f17a1e20d7f9750e59f3ba7dec4a4615e96206b07d5f76ee32a
3
  size 3098576
build/torch210-cxx11-cu130-x86_64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "yoso",
3
- "id": "_yoso_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "yoso",
3
+ "id": "_yoso_cuda_ead89ac",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch211-cxx11-cu126-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _yoso_cuda_86f75d9
3
- ops = torch.ops._yoso_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_yoso_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _yoso_cuda_ead89ac
3
+ ops = torch.ops._yoso_cuda_ead89ac
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_yoso_cuda_ead89ac::{op_name}"
build/torch211-cxx11-cu126-x86_64-linux/{_yoso_cuda_86f75d9.abi3.so → _yoso_cuda_ead89ac.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8ec62946b9fb8c5b44dbbfe63d231ecdea74e1c6ad4507b30385296e4d1fceb2
3
  size 2498248
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:052c366e055ed8febba8d5101dde9c1c7fb8e937fe80dec13d3ccc9e724ed2ea
3
  size 2498248
build/torch211-cxx11-cu126-x86_64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "yoso",
3
- "id": "_yoso_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "yoso",
3
+ "id": "_yoso_cuda_ead89ac",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch211-cxx11-cu128-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _yoso_cuda_86f75d9
3
- ops = torch.ops._yoso_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_yoso_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _yoso_cuda_ead89ac
3
+ ops = torch.ops._yoso_cuda_ead89ac
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_yoso_cuda_ead89ac::{op_name}"
build/{torch210-cxx11-cu128-x86_64-linux/_yoso_cuda_86f75d9.abi3.so → torch211-cxx11-cu128-x86_64-linux/_yoso_cuda_ead89ac.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3327aebd49dc1c9e5d7302702656e8bc13cdaf4f5e6b4fea638439a0522060ed
3
  size 3040824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:435238093de943b4becc2bd508cf97cd8a3048a643fe31c13bec787a4935bcad
3
  size 3040824
build/torch211-cxx11-cu128-x86_64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "yoso",
3
- "id": "_yoso_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "yoso",
3
+ "id": "_yoso_cuda_ead89ac",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch211-cxx11-cu130-x86_64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _yoso_cuda_86f75d9
3
- ops = torch.ops._yoso_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_yoso_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _yoso_cuda_ead89ac
3
+ ops = torch.ops._yoso_cuda_ead89ac
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_yoso_cuda_ead89ac::{op_name}"
build/{torch210-cxx11-cu130-x86_64-linux/_yoso_cuda_86f75d9.abi3.so → torch211-cxx11-cu130-x86_64-linux/_yoso_cuda_ead89ac.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2b4954dc740f6b19d7037c975695789a6d3d249307784edc2bf045cdb3f6cc74
3
  size 3098576
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bbedf5814324cc10e1a17fae836a2c00f7200e2f76f35248da10908b83b8bfe
3
  size 3098576
build/torch211-cxx11-cu130-x86_64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "yoso",
3
- "id": "_yoso_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "yoso",
3
+ "id": "_yoso_cuda_ead89ac",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch212-cxx11-cu126-x86_64-linux/__init__.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from ._ops import ops
2
+
3
+ fast_hash = ops.fast_hash
4
+ lsh_cumulation = ops.lsh_cumulation
5
+ lsh_weighted_cumulation = ops.lsh_weighted_cumulation
6
+
7
+ __all__ = [
8
+ "fast_hash",
9
+ "lsh_cumulation",
10
+ "lsh_weighted_cumulation",
11
+ ]
build/torch212-cxx11-cu126-x86_64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _yoso_cuda_ead89ac
3
+ ops = torch.ops._yoso_cuda_ead89ac
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_yoso_cuda_ead89ac::{op_name}"
build/torch212-cxx11-cu126-x86_64-linux/_yoso_cuda_ead89ac.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc60544c30f444587721a37baa291fb1524f7846f2c81e530505861b5698ddea
3
+ size 2493240
build/torch212-cxx11-cu126-x86_64-linux/metadata.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "yoso",
3
+ "id": "_yoso_cuda_ead89ac",
4
+ "version": 1,
5
+ "license": "Apache-2.0",
6
+ "python-depends": [],
7
+ "backend": {
8
+ "type": "cuda",
9
+ "archs": [
10
+ "8.0",
11
+ "8.9",
12
+ "9.0"
13
+ ]
14
+ }
15
+ }
build/torch212-cxx11-cu126-x86_64-linux/yoso/__init__.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import ctypes
2
+ import importlib.util
3
+ import sys
4
+ from pathlib import Path
5
+ from types import ModuleType
6
+
7
+
8
+ def _import_from_path(file_path: Path) -> ModuleType:
9
+ # We cannot use the module name as-is, after adding it to `sys.modules`,
10
+ # it would also be used for other imports. So, we make a module name that
11
+ # depends on the path for it to be unique using the hex-encoded hash of
12
+ # the path.
13
+ path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
14
+ module_name = path_hash
15
+ spec = importlib.util.spec_from_file_location(module_name, file_path)
16
+ if spec is None:
17
+ raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
18
+ module = importlib.util.module_from_spec(spec)
19
+ if module is None:
20
+ raise ImportError(f"Cannot load module {module_name} from spec")
21
+ sys.modules[module_name] = module
22
+ spec.loader.exec_module(module) # type: ignore
23
+ return module
24
+
25
+
26
+ globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
build/torch212-cxx11-cu130-x86_64-linux/__init__.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from ._ops import ops
2
+
3
+ fast_hash = ops.fast_hash
4
+ lsh_cumulation = ops.lsh_cumulation
5
+ lsh_weighted_cumulation = ops.lsh_weighted_cumulation
6
+
7
+ __all__ = [
8
+ "fast_hash",
9
+ "lsh_cumulation",
10
+ "lsh_weighted_cumulation",
11
+ ]
build/torch212-cxx11-cu130-x86_64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _yoso_cuda_ead89ac
3
+ ops = torch.ops._yoso_cuda_ead89ac
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_yoso_cuda_ead89ac::{op_name}"
build/torch212-cxx11-cu130-x86_64-linux/_yoso_cuda_ead89ac.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd9d702e64c5713323e2021e205bb76bc6b10ed1aa3e0e59fa29b9eb83856373
3
+ size 3089424
build/torch212-cxx11-cu130-x86_64-linux/metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "yoso",
3
+ "id": "_yoso_cuda_ead89ac",
4
+ "version": 1,
5
+ "license": "Apache-2.0",
6
+ "python-depends": [],
7
+ "backend": {
8
+ "type": "cuda",
9
+ "archs": [
10
+ "10.0",
11
+ "12.0",
12
+ "8.0",
13
+ "8.9",
14
+ "9.0"
15
+ ]
16
+ }
17
+ }
build/torch212-cxx11-cu130-x86_64-linux/yoso/__init__.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import ctypes
2
+ import importlib.util
3
+ import sys
4
+ from pathlib import Path
5
+ from types import ModuleType
6
+
7
+
8
+ def _import_from_path(file_path: Path) -> ModuleType:
9
+ # We cannot use the module name as-is, after adding it to `sys.modules`,
10
+ # it would also be used for other imports. So, we make a module name that
11
+ # depends on the path for it to be unique using the hex-encoded hash of
12
+ # the path.
13
+ path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
14
+ module_name = path_hash
15
+ spec = importlib.util.spec_from_file_location(module_name, file_path)
16
+ if spec is None:
17
+ raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
18
+ module = importlib.util.module_from_spec(spec)
19
+ if module is None:
20
+ raise ImportError(f"Cannot load module {module_name} from spec")
21
+ sys.modules[module_name] = module
22
+ spec.loader.exec_module(module) # type: ignore
23
+ return module
24
+
25
+
26
+ globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
build/torch212-cxx11-cu132-x86_64-linux/__init__.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from ._ops import ops
2
+
3
+ fast_hash = ops.fast_hash
4
+ lsh_cumulation = ops.lsh_cumulation
5
+ lsh_weighted_cumulation = ops.lsh_weighted_cumulation
6
+
7
+ __all__ = [
8
+ "fast_hash",
9
+ "lsh_cumulation",
10
+ "lsh_weighted_cumulation",
11
+ ]
build/torch212-cxx11-cu132-x86_64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _yoso_cuda_ead89ac
3
+ ops = torch.ops._yoso_cuda_ead89ac
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_yoso_cuda_ead89ac::{op_name}"
build/torch212-cxx11-cu132-x86_64-linux/_yoso_cuda_ead89ac.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b56825166767f687fc4cd211ccebea4a5103353af16d07cbd623c6b21affdd48
3
+ size 3107760
build/torch212-cxx11-cu132-x86_64-linux/metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "yoso",
3
+ "id": "_yoso_cuda_ead89ac",
4
+ "version": 1,
5
+ "license": "Apache-2.0",
6
+ "python-depends": [],
7
+ "backend": {
8
+ "type": "cuda",
9
+ "archs": [
10
+ "10.0",
11
+ "12.0",
12
+ "8.0",
13
+ "8.9",
14
+ "9.0"
15
+ ]
16
+ }
17
+ }
build/torch212-cxx11-cu132-x86_64-linux/yoso/__init__.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import ctypes
2
+ import importlib.util
3
+ import sys
4
+ from pathlib import Path
5
+ from types import ModuleType
6
+
7
+
8
+ def _import_from_path(file_path: Path) -> ModuleType:
9
+ # We cannot use the module name as-is, after adding it to `sys.modules`,
10
+ # it would also be used for other imports. So, we make a module name that
11
+ # depends on the path for it to be unique using the hex-encoded hash of
12
+ # the path.
13
+ path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
14
+ module_name = path_hash
15
+ spec = importlib.util.spec_from_file_location(module_name, file_path)
16
+ if spec is None:
17
+ raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
18
+ module = importlib.util.module_from_spec(spec)
19
+ if module is None:
20
+ raise ImportError(f"Cannot load module {module_name} from spec")
21
+ sys.modules[module_name] = module
22
+ spec.loader.exec_module(module) # type: ignore
23
+ return module
24
+
25
+
26
+ globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))