Build uploaded using `kernels`.
Browse files- .gitattributes +6 -0
- build/torch210-cxx11-cu126-aarch64-linux/__init__.py +12 -0
- build/torch210-cxx11-cu126-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so +3 -0
- build/torch210-cxx11-cu126-aarch64-linux/_ops.py +9 -0
- build/torch210-cxx11-cu126-aarch64-linux/cv_utils/__init__.py +26 -0
- build/torch210-cxx11-cu126-aarch64-linux/metadata.json +17 -0
- build/torch210-cxx11-cu128-aarch64-linux/__init__.py +12 -0
- build/torch210-cxx11-cu128-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so +3 -0
- build/torch210-cxx11-cu128-aarch64-linux/_ops.py +9 -0
- build/torch210-cxx11-cu128-aarch64-linux/cv_utils/__init__.py +26 -0
- build/torch210-cxx11-cu128-aarch64-linux/metadata.json +20 -0
- build/torch210-cxx11-cu130-aarch64-linux/__init__.py +12 -0
- build/torch210-cxx11-cu130-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so +3 -0
- build/torch210-cxx11-cu130-aarch64-linux/_ops.py +9 -0
- build/torch210-cxx11-cu130-aarch64-linux/cv_utils/__init__.py +26 -0
- build/torch210-cxx11-cu130-aarch64-linux/metadata.json +18 -0
- build/torch29-cxx11-cu126-aarch64-linux/__init__.py +12 -0
- build/torch29-cxx11-cu126-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so +3 -0
- build/torch29-cxx11-cu126-aarch64-linux/_ops.py +9 -0
- build/torch29-cxx11-cu126-aarch64-linux/cv_utils/__init__.py +26 -0
- build/torch29-cxx11-cu126-aarch64-linux/metadata.json +17 -0
- build/torch29-cxx11-cu128-aarch64-linux/__init__.py +12 -0
- build/torch29-cxx11-cu128-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so +3 -0
- build/torch29-cxx11-cu128-aarch64-linux/_ops.py +9 -0
- build/torch29-cxx11-cu128-aarch64-linux/cv_utils/__init__.py +26 -0
- build/torch29-cxx11-cu128-aarch64-linux/metadata.json +20 -0
- build/torch29-cxx11-cu130-aarch64-linux/__init__.py +12 -0
- build/torch29-cxx11-cu130-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so +3 -0
- build/torch29-cxx11-cu130-aarch64-linux/_ops.py +9 -0
- build/torch29-cxx11-cu130-aarch64-linux/cv_utils/__init__.py +26 -0
- build/torch29-cxx11-cu130-aarch64-linux/metadata.json +18 -0
.gitattributes
CHANGED
|
@@ -42,3 +42,9 @@ build/torch28-cxx11-cu129-x86_64-linux/_cv_utils_8541a33.abi3.so filter=lfs diff
|
|
| 42 |
build/torch29-cxx11-cu126-x86_64-linux/_cv_utils_8541a33.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 43 |
build/torch29-cxx11-cu128-x86_64-linux/_cv_utils_8541a33.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 44 |
build/torch29-cxx11-cu130-x86_64-linux/_cv_utils_8541a33.abi3.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
build/torch29-cxx11-cu126-x86_64-linux/_cv_utils_8541a33.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 43 |
build/torch29-cxx11-cu128-x86_64-linux/_cv_utils_8541a33.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 44 |
build/torch29-cxx11-cu130-x86_64-linux/_cv_utils_8541a33.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
build/torch210-cxx11-cu126-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
build/torch210-cxx11-cu128-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
build/torch210-cxx11-cu130-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
build/torch29-cxx11-cu126-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
build/torch29-cxx11-cu128-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
build/torch29-cxx11-cu130-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so filter=lfs diff=lfs merge=lfs -text
|
build/torch210-cxx11-cu126-aarch64-linux/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
from ._ops import ops
|
| 5 |
+
|
| 6 |
+
def cc_2d(inputs: torch.Tensor, get_counts: bool) -> List[torch.Tensor]:
|
| 7 |
+
return ops.cc_2d(inputs, get_counts)
|
| 8 |
+
|
| 9 |
+
def generic_nms(dets: torch.Tensor, scores: torch.Tensor, iou_threshold: float, use_iou_matrix: bool) -> torch.Tensor:
|
| 10 |
+
return ops.generic_nms(dets, scores, iou_threshold, use_iou_matrix)
|
| 11 |
+
|
| 12 |
+
__all__ = ["cc_2d", "generic_nms"]
|
build/torch210-cxx11-cu126-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd70e0ed7915339cb40d62b2db8381331cf07586acdbeed4d7cd1bd06c54b6d5
|
| 3 |
+
size 3168896
|
build/torch210-cxx11-cu126-aarch64-linux/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _cv_utils_cuda_8cfc281
|
| 3 |
+
ops = torch.ops._cv_utils_cuda_8cfc281
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_cv_utils_cuda_8cfc281::{op_name}"
|
build/torch210-cxx11-cu126-aarch64-linux/cv_utils/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ctypes
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
import importlib
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from types import ModuleType
|
| 7 |
+
|
| 8 |
+
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
+
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
+
# it would also be used for other imports. So, we make a module name that
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch210-cxx11-cu126-aarch64-linux/metadata.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"python-depends": [],
|
| 4 |
+
"backend": {
|
| 5 |
+
"type": "cuda",
|
| 6 |
+
"archs": [
|
| 7 |
+
"7.0",
|
| 8 |
+
"7.2",
|
| 9 |
+
"7.5",
|
| 10 |
+
"8.0",
|
| 11 |
+
"8.6",
|
| 12 |
+
"8.7",
|
| 13 |
+
"8.9",
|
| 14 |
+
"9.0+PTX"
|
| 15 |
+
]
|
| 16 |
+
}
|
| 17 |
+
}
|
build/torch210-cxx11-cu128-aarch64-linux/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
from ._ops import ops
|
| 5 |
+
|
| 6 |
+
def cc_2d(inputs: torch.Tensor, get_counts: bool) -> List[torch.Tensor]:
|
| 7 |
+
return ops.cc_2d(inputs, get_counts)
|
| 8 |
+
|
| 9 |
+
def generic_nms(dets: torch.Tensor, scores: torch.Tensor, iou_threshold: float, use_iou_matrix: bool) -> torch.Tensor:
|
| 10 |
+
return ops.generic_nms(dets, scores, iou_threshold, use_iou_matrix)
|
| 11 |
+
|
| 12 |
+
__all__ = ["cc_2d", "generic_nms"]
|
build/torch210-cxx11-cu128-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2203c765753e697bad106474dc3536fd991024509abd6f4cbb2db1c7e9684857
|
| 3 |
+
size 3824424
|
build/torch210-cxx11-cu128-aarch64-linux/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _cv_utils_cuda_8cfc281
|
| 3 |
+
ops = torch.ops._cv_utils_cuda_8cfc281
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_cv_utils_cuda_8cfc281::{op_name}"
|
build/torch210-cxx11-cu128-aarch64-linux/cv_utils/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ctypes
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
import importlib
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from types import ModuleType
|
| 7 |
+
|
| 8 |
+
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
+
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
+
# it would also be used for other imports. So, we make a module name that
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch210-cxx11-cu128-aarch64-linux/metadata.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"python-depends": [],
|
| 4 |
+
"backend": {
|
| 5 |
+
"type": "cuda",
|
| 6 |
+
"archs": [
|
| 7 |
+
"10.0",
|
| 8 |
+
"10.1",
|
| 9 |
+
"12.0+PTX",
|
| 10 |
+
"7.0",
|
| 11 |
+
"7.2",
|
| 12 |
+
"7.5",
|
| 13 |
+
"8.0",
|
| 14 |
+
"8.6",
|
| 15 |
+
"8.7",
|
| 16 |
+
"8.9",
|
| 17 |
+
"9.0"
|
| 18 |
+
]
|
| 19 |
+
}
|
| 20 |
+
}
|
build/torch210-cxx11-cu130-aarch64-linux/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
from ._ops import ops
|
| 5 |
+
|
| 6 |
+
def cc_2d(inputs: torch.Tensor, get_counts: bool) -> List[torch.Tensor]:
|
| 7 |
+
return ops.cc_2d(inputs, get_counts)
|
| 8 |
+
|
| 9 |
+
def generic_nms(dets: torch.Tensor, scores: torch.Tensor, iou_threshold: float, use_iou_matrix: bool) -> torch.Tensor:
|
| 10 |
+
return ops.generic_nms(dets, scores, iou_threshold, use_iou_matrix)
|
| 11 |
+
|
| 12 |
+
__all__ = ["cc_2d", "generic_nms"]
|
build/torch210-cxx11-cu130-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f62f22326656ca04093c8230d4a418d57f3ecbcfb6b939e9d13226d11dbe587e
|
| 3 |
+
size 3633848
|
build/torch210-cxx11-cu130-aarch64-linux/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _cv_utils_cuda_8cfc281
|
| 3 |
+
ops = torch.ops._cv_utils_cuda_8cfc281
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_cv_utils_cuda_8cfc281::{op_name}"
|
build/torch210-cxx11-cu130-aarch64-linux/cv_utils/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ctypes
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
import importlib
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from types import ModuleType
|
| 7 |
+
|
| 8 |
+
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
+
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
+
# it would also be used for other imports. So, we make a module name that
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch210-cxx11-cu130-aarch64-linux/metadata.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"python-depends": [],
|
| 4 |
+
"backend": {
|
| 5 |
+
"type": "cuda",
|
| 6 |
+
"archs": [
|
| 7 |
+
"10.0",
|
| 8 |
+
"11.0",
|
| 9 |
+
"12.0+PTX",
|
| 10 |
+
"7.5",
|
| 11 |
+
"8.0",
|
| 12 |
+
"8.6",
|
| 13 |
+
"8.7",
|
| 14 |
+
"8.9",
|
| 15 |
+
"9.0"
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|
build/torch29-cxx11-cu126-aarch64-linux/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
from ._ops import ops
|
| 5 |
+
|
| 6 |
+
def cc_2d(inputs: torch.Tensor, get_counts: bool) -> List[torch.Tensor]:
|
| 7 |
+
return ops.cc_2d(inputs, get_counts)
|
| 8 |
+
|
| 9 |
+
def generic_nms(dets: torch.Tensor, scores: torch.Tensor, iou_threshold: float, use_iou_matrix: bool) -> torch.Tensor:
|
| 10 |
+
return ops.generic_nms(dets, scores, iou_threshold, use_iou_matrix)
|
| 11 |
+
|
| 12 |
+
__all__ = ["cc_2d", "generic_nms"]
|
build/torch29-cxx11-cu126-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb8cff7b3e4834dcedbac0058de07b8b9a50a72e3d73a591710994b27c58fba3
|
| 3 |
+
size 3165512
|
build/torch29-cxx11-cu126-aarch64-linux/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _cv_utils_cuda_8cfc281
|
| 3 |
+
ops = torch.ops._cv_utils_cuda_8cfc281
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_cv_utils_cuda_8cfc281::{op_name}"
|
build/torch29-cxx11-cu126-aarch64-linux/cv_utils/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ctypes
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
import importlib
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from types import ModuleType
|
| 7 |
+
|
| 8 |
+
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
+
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
+
# it would also be used for other imports. So, we make a module name that
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch29-cxx11-cu126-aarch64-linux/metadata.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"python-depends": [],
|
| 4 |
+
"backend": {
|
| 5 |
+
"type": "cuda",
|
| 6 |
+
"archs": [
|
| 7 |
+
"7.0",
|
| 8 |
+
"7.2",
|
| 9 |
+
"7.5",
|
| 10 |
+
"8.0",
|
| 11 |
+
"8.6",
|
| 12 |
+
"8.7",
|
| 13 |
+
"8.9",
|
| 14 |
+
"9.0+PTX"
|
| 15 |
+
]
|
| 16 |
+
}
|
| 17 |
+
}
|
build/torch29-cxx11-cu128-aarch64-linux/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
from ._ops import ops
|
| 5 |
+
|
| 6 |
+
def cc_2d(inputs: torch.Tensor, get_counts: bool) -> List[torch.Tensor]:
|
| 7 |
+
return ops.cc_2d(inputs, get_counts)
|
| 8 |
+
|
| 9 |
+
def generic_nms(dets: torch.Tensor, scores: torch.Tensor, iou_threshold: float, use_iou_matrix: bool) -> torch.Tensor:
|
| 10 |
+
return ops.generic_nms(dets, scores, iou_threshold, use_iou_matrix)
|
| 11 |
+
|
| 12 |
+
__all__ = ["cc_2d", "generic_nms"]
|
build/torch29-cxx11-cu128-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8fa241565cfdede03164f1722d4e31307f9658aca61020deada6bed653e7a91
|
| 3 |
+
size 3820720
|
build/torch29-cxx11-cu128-aarch64-linux/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _cv_utils_cuda_8cfc281
|
| 3 |
+
ops = torch.ops._cv_utils_cuda_8cfc281
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_cv_utils_cuda_8cfc281::{op_name}"
|
build/torch29-cxx11-cu128-aarch64-linux/cv_utils/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ctypes
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
import importlib
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from types import ModuleType
|
| 7 |
+
|
| 8 |
+
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
+
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
+
# it would also be used for other imports. So, we make a module name that
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch29-cxx11-cu128-aarch64-linux/metadata.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"python-depends": [],
|
| 4 |
+
"backend": {
|
| 5 |
+
"type": "cuda",
|
| 6 |
+
"archs": [
|
| 7 |
+
"10.0",
|
| 8 |
+
"10.1",
|
| 9 |
+
"12.0+PTX",
|
| 10 |
+
"7.0",
|
| 11 |
+
"7.2",
|
| 12 |
+
"7.5",
|
| 13 |
+
"8.0",
|
| 14 |
+
"8.6",
|
| 15 |
+
"8.7",
|
| 16 |
+
"8.9",
|
| 17 |
+
"9.0"
|
| 18 |
+
]
|
| 19 |
+
}
|
| 20 |
+
}
|
build/torch29-cxx11-cu130-aarch64-linux/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
from ._ops import ops
|
| 5 |
+
|
| 6 |
+
def cc_2d(inputs: torch.Tensor, get_counts: bool) -> List[torch.Tensor]:
|
| 7 |
+
return ops.cc_2d(inputs, get_counts)
|
| 8 |
+
|
| 9 |
+
def generic_nms(dets: torch.Tensor, scores: torch.Tensor, iou_threshold: float, use_iou_matrix: bool) -> torch.Tensor:
|
| 10 |
+
return ops.generic_nms(dets, scores, iou_threshold, use_iou_matrix)
|
| 11 |
+
|
| 12 |
+
__all__ = ["cc_2d", "generic_nms"]
|
build/torch29-cxx11-cu130-aarch64-linux/_cv_utils_cuda_8cfc281.abi3.so
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d3eae36344c7f1472879d5df26ad7fc9826e7ae5fd99a89114d147a015f0d5c
|
| 3 |
+
size 3630144
|
build/torch29-cxx11-cu130-aarch64-linux/_ops.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from . import _cv_utils_cuda_8cfc281
|
| 3 |
+
ops = torch.ops._cv_utils_cuda_8cfc281
|
| 4 |
+
|
| 5 |
+
def add_op_namespace_prefix(op_name: str):
|
| 6 |
+
"""
|
| 7 |
+
Prefix op by namespace.
|
| 8 |
+
"""
|
| 9 |
+
return f"_cv_utils_cuda_8cfc281::{op_name}"
|
build/torch29-cxx11-cu130-aarch64-linux/cv_utils/__init__.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ctypes
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
import importlib
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
from types import ModuleType
|
| 7 |
+
|
| 8 |
+
def _import_from_path(file_path: Path) -> ModuleType:
|
| 9 |
+
# We cannot use the module name as-is, after adding it to `sys.modules`,
|
| 10 |
+
# it would also be used for other imports. So, we make a module name that
|
| 11 |
+
# depends on the path for it to be unique using the hex-encoded hash of
|
| 12 |
+
# the path.
|
| 13 |
+
path_hash = "{:x}".format(ctypes.c_size_t(hash(file_path.absolute())).value)
|
| 14 |
+
module_name = path_hash
|
| 15 |
+
spec = importlib.util.spec_from_file_location(module_name, file_path)
|
| 16 |
+
if spec is None:
|
| 17 |
+
raise ImportError(f"Cannot load spec for {module_name} from {file_path}")
|
| 18 |
+
module = importlib.util.module_from_spec(spec)
|
| 19 |
+
if module is None:
|
| 20 |
+
raise ImportError(f"Cannot load module {module_name} from spec")
|
| 21 |
+
sys.modules[module_name] = module
|
| 22 |
+
spec.loader.exec_module(module) # type: ignore
|
| 23 |
+
return module
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
globals().update(vars(_import_from_path(Path(__file__).parent.parent / "__init__.py")))
|
build/torch29-cxx11-cu130-aarch64-linux/metadata.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"python-depends": [],
|
| 4 |
+
"backend": {
|
| 5 |
+
"type": "cuda",
|
| 6 |
+
"archs": [
|
| 7 |
+
"10.0",
|
| 8 |
+
"11.0",
|
| 9 |
+
"12.0+PTX",
|
| 10 |
+
"7.5",
|
| 11 |
+
"8.0",
|
| 12 |
+
"8.6",
|
| 13 |
+
"8.7",
|
| 14 |
+
"8.9",
|
| 15 |
+
"9.0"
|
| 16 |
+
]
|
| 17 |
+
}
|
| 18 |
+
}
|