Build uploaded using `kernels`.
Browse files- .gitattributes +1 -0
- build/torch210-cu128-x86_64-windows/__init__.py +11 -0
- build/torch210-cu128-x86_64-windows/_ops.py +9 -0
- build/torch210-cu128-x86_64-windows/_yoso_cuda_400d834.pyd +3 -0
- build/torch210-cu128-x86_64-windows/metadata.json +14 -0
- build/torch210-cu128-x86_64-windows/yoso/__init__.py +26 -0
.gitattributes
CHANGED
|
@@ -90,3 +90,4 @@ build/torch210-cxx11-cu130-aarch64-linux/_yoso_cuda_c42e4a3.abi3.so filter=lfs d
|
|
| 90 |
build/torch29-cxx11-cu126-aarch64-linux/_yoso_cuda_c42e4a3.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 91 |
build/torch29-cxx11-cu128-aarch64-linux/_yoso_cuda_c42e4a3.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 92 |
build/torch29-cxx11-cu130-aarch64-linux/_yoso_cuda_c42e4a3.abi3.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 90 |
build/torch29-cxx11-cu126-aarch64-linux/_yoso_cuda_c42e4a3.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 91 |
build/torch29-cxx11-cu128-aarch64-linux/_yoso_cuda_c42e4a3.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 92 |
build/torch29-cxx11-cu130-aarch64-linux/_yoso_cuda_c42e4a3.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
build/torch210-cu128-x86_64-windows/_yoso_cuda_400d834.pyd filter=lfs diff=lfs merge=lfs -text
|
build/torch210-cu128-x86_64-windows/__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/torch210-cu128-x86_64-windows/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _yoso_cuda_400d834
|
| 3 |
+
ops = torch.ops._yoso_cuda_400d834
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_yoso_cuda_400d834::{op_name}"
|
build/torch210-cu128-x86_64-windows/_yoso_cuda_400d834.pyd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a0edac5d6fd0ffd5002c3b431e341cca3cbff941564d12daca7beac5f685ba6
|
| 3 |
+
size 1112576
|
build/torch210-cu128-x86_64-windows/metadata.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"python-depends": [],
|
| 4 |
+
"backend": {
|
| 5 |
+
"type": "cuda",
|
| 6 |
+
"archs": [
|
| 7 |
+
"10.0",
|
| 8 |
+
"12.0",
|
| 9 |
+
"8.0",
|
| 10 |
+
"8.9",
|
| 11 |
+
"9.0"
|
| 12 |
+
]
|
| 13 |
+
}
|
| 14 |
+
}
|
build/torch210-cu128-x86_64-windows/yoso/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ctypes
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
import importlib
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from types import ModuleType
|
| 7 |
+
|
| 8 |
+
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
+
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
+
# it would also be used for other imports. So, we make a module name that
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|