kernels-bot commited on
Commit
110f982
·
verified ·
1 Parent(s): 92a3fd6

Uploaded using `kernel-builder`.

Browse files
Files changed (34) hide show
  1. .gitattributes +9 -0
  2. build/torch210-cxx11-cu126-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} +1 -1
  3. build/torch210-cxx11-cu126-aarch64-linux/_ops.py +3 -3
  4. build/torch210-cxx11-cu126-aarch64-linux/metadata.json +1 -1
  5. build/torch210-cxx11-cu128-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} +1 -1
  6. build/torch210-cxx11-cu128-aarch64-linux/_ops.py +3 -3
  7. build/torch210-cxx11-cu128-aarch64-linux/metadata.json +1 -1
  8. build/torch210-cxx11-cu130-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} +1 -1
  9. build/torch210-cxx11-cu130-aarch64-linux/_ops.py +3 -3
  10. build/torch210-cxx11-cu130-aarch64-linux/metadata.json +1 -1
  11. build/torch211-cxx11-cu126-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} +1 -1
  12. build/torch211-cxx11-cu126-aarch64-linux/_ops.py +3 -3
  13. build/torch211-cxx11-cu126-aarch64-linux/metadata.json +1 -1
  14. build/torch211-cxx11-cu128-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} +1 -1
  15. build/torch211-cxx11-cu128-aarch64-linux/_ops.py +3 -3
  16. build/torch211-cxx11-cu128-aarch64-linux/metadata.json +1 -1
  17. build/torch211-cxx11-cu130-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} +1 -1
  18. build/torch211-cxx11-cu130-aarch64-linux/_ops.py +3 -3
  19. build/torch211-cxx11-cu130-aarch64-linux/metadata.json +1 -1
  20. build/torch212-cxx11-cu126-aarch64-linux/__init__.py +12 -0
  21. build/torch212-cxx11-cu126-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so +3 -0
  22. build/torch212-cxx11-cu126-aarch64-linux/_ops.py +9 -0
  23. build/torch212-cxx11-cu126-aarch64-linux/cv_utils/__init__.py +26 -0
  24. build/torch212-cxx11-cu126-aarch64-linux/metadata.json +20 -0
  25. build/torch212-cxx11-cu130-aarch64-linux/__init__.py +12 -0
  26. build/torch212-cxx11-cu130-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so +3 -0
  27. build/torch212-cxx11-cu130-aarch64-linux/_ops.py +9 -0
  28. build/torch212-cxx11-cu130-aarch64-linux/cv_utils/__init__.py +26 -0
  29. build/torch212-cxx11-cu130-aarch64-linux/metadata.json +21 -0
  30. build/torch212-cxx11-cu132-aarch64-linux/__init__.py +12 -0
  31. build/torch212-cxx11-cu132-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so +3 -0
  32. build/torch212-cxx11-cu132-aarch64-linux/_ops.py +9 -0
  33. build/torch212-cxx11-cu132-aarch64-linux/cv_utils/__init__.py +26 -0
  34. build/torch212-cxx11-cu132-aarch64-linux/metadata.json +21 -0
.gitattributes CHANGED
@@ -111,3 +111,12 @@ build/torch210-cxx11-cu130-aarch64-linux/_cv_utils_cuda_86f75d9.abi3.so filter=l
111
  build/torch211-cxx11-cu126-aarch64-linux/_cv_utils_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
112
  build/torch211-cxx11-cu128-aarch64-linux/_cv_utils_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
113
  build/torch211-cxx11-cu130-aarch64-linux/_cv_utils_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
111
  build/torch211-cxx11-cu126-aarch64-linux/_cv_utils_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
112
  build/torch211-cxx11-cu128-aarch64-linux/_cv_utils_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
113
  build/torch211-cxx11-cu130-aarch64-linux/_cv_utils_cuda_86f75d9.abi3.so filter=lfs diff=lfs merge=lfs -text
114
+ build/torch210-cxx11-cu126-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so filter=lfs diff=lfs merge=lfs -text
115
+ build/torch210-cxx11-cu128-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so filter=lfs diff=lfs merge=lfs -text
116
+ build/torch210-cxx11-cu130-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so filter=lfs diff=lfs merge=lfs -text
117
+ build/torch211-cxx11-cu126-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so filter=lfs diff=lfs merge=lfs -text
118
+ build/torch211-cxx11-cu128-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so filter=lfs diff=lfs merge=lfs -text
119
+ build/torch211-cxx11-cu130-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so filter=lfs diff=lfs merge=lfs -text
120
+ build/torch212-cxx11-cu126-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so filter=lfs diff=lfs merge=lfs -text
121
+ build/torch212-cxx11-cu130-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so filter=lfs diff=lfs merge=lfs -text
122
+ build/torch212-cxx11-cu132-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so filter=lfs diff=lfs merge=lfs -text
build/torch210-cxx11-cu126-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:02b2dee04ac6148fd2dc2aaa5dbae993209c8263ce615cc1c4b0c55613ed6794
3
  size 3168896
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4476a1a866f43327fe38cf6f1e8134fe709e3813a8597db2406c233ca2d531f8
3
  size 3168896
build/torch210-cxx11-cu126-aarch64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _cv_utils_cuda_86f75d9
3
- ops = torch.ops._cv_utils_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_cv_utils_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _cv_utils_cuda_49aeecd
3
+ ops = torch.ops._cv_utils_cuda_49aeecd
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_cv_utils_cuda_49aeecd::{op_name}"
build/torch210-cxx11-cu126-aarch64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "cv-utils",
3
- "id": "_cv_utils_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "cv-utils",
3
+ "id": "_cv_utils_cuda_49aeecd",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch210-cxx11-cu128-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d1c0f2fb01285c5509898c0bbcbd4e1b92b0fccb134dc34270c07ee74ed33ee4
3
  size 3824424
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0883624ef6f1c5ea97055f18881b4d399cafc7abaa296bcb3e690f18960dafe4
3
  size 3824424
build/torch210-cxx11-cu128-aarch64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _cv_utils_cuda_86f75d9
3
- ops = torch.ops._cv_utils_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_cv_utils_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _cv_utils_cuda_49aeecd
3
+ ops = torch.ops._cv_utils_cuda_49aeecd
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_cv_utils_cuda_49aeecd::{op_name}"
build/torch210-cxx11-cu128-aarch64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "cv-utils",
3
- "id": "_cv_utils_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "cv-utils",
3
+ "id": "_cv_utils_cuda_49aeecd",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch210-cxx11-cu130-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ef46c75974c5a89fbc71d516e88ce1b1d5ed64c85885cf499a1fd62f3139d909
3
  size 3634344
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89a08ae6efbdf3af85d8dba71ed7879ae3a83d5fcad99fcaf91ffb9b22b94e5d
3
  size 3634344
build/torch210-cxx11-cu130-aarch64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _cv_utils_cuda_86f75d9
3
- ops = torch.ops._cv_utils_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_cv_utils_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _cv_utils_cuda_49aeecd
3
+ ops = torch.ops._cv_utils_cuda_49aeecd
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_cv_utils_cuda_49aeecd::{op_name}"
build/torch210-cxx11-cu130-aarch64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "cv-utils",
3
- "id": "_cv_utils_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "cv-utils",
3
+ "id": "_cv_utils_cuda_49aeecd",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch211-cxx11-cu126-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:465b7ce2e86694a427ea5aec8b8d70e17e6ae4e68f6f5dfeb3aee49f90faa8c7
3
  size 3165104
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c639b4bb5e60505fbc08b96eb1028be7eedca2ff87b74290fd405e012581be2
3
  size 3165104
build/torch211-cxx11-cu126-aarch64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _cv_utils_cuda_86f75d9
3
- ops = torch.ops._cv_utils_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_cv_utils_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _cv_utils_cuda_49aeecd
3
+ ops = torch.ops._cv_utils_cuda_49aeecd
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_cv_utils_cuda_49aeecd::{op_name}"
build/torch211-cxx11-cu126-aarch64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "cv-utils",
3
- "id": "_cv_utils_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "cv-utils",
3
+ "id": "_cv_utils_cuda_49aeecd",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch211-cxx11-cu128-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4e25aed898fc3aaded438f9ebda060f0a622f3b2ae090153bb596411d2d9edea
3
  size 3820640
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46f372978c3710bad43ab52f4533c4f1b2324a7005101729ce6b011b0adbaa7e
3
  size 3820640
build/torch211-cxx11-cu128-aarch64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _cv_utils_cuda_86f75d9
3
- ops = torch.ops._cv_utils_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_cv_utils_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _cv_utils_cuda_49aeecd
3
+ ops = torch.ops._cv_utils_cuda_49aeecd
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_cv_utils_cuda_49aeecd::{op_name}"
build/torch211-cxx11-cu128-aarch64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "cv-utils",
3
- "id": "_cv_utils_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "cv-utils",
3
+ "id": "_cv_utils_cuda_49aeecd",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch211-cxx11-cu130-aarch64-linux/{_cv_utils_cuda_86f75d9.abi3.so → _cv_utils_cuda_49aeecd.abi3.so} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1531c14457c9b66acdbc5409a02b97c510beeb0e0fb7cc0de45ca76395d03414
3
  size 3630552
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec393f51f5839dd03cea45fe9d04b0fae20a1e026152ebf2cb6e87a57d63bd0a
3
  size 3630552
build/torch211-cxx11-cu130-aarch64-linux/_ops.py CHANGED
@@ -1,9 +1,9 @@
1
  import torch
2
- from . import _cv_utils_cuda_86f75d9
3
- ops = torch.ops._cv_utils_cuda_86f75d9
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
- return f"_cv_utils_cuda_86f75d9::{op_name}"
 
1
  import torch
2
+ from . import _cv_utils_cuda_49aeecd
3
+ ops = torch.ops._cv_utils_cuda_49aeecd
4
 
5
  def add_op_namespace_prefix(op_name: str):
6
  """
7
  Prefix op by namespace.
8
  """
9
+ return f"_cv_utils_cuda_49aeecd::{op_name}"
build/torch211-cxx11-cu130-aarch64-linux/metadata.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "cv-utils",
3
- "id": "_cv_utils_cuda_86f75d9",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
 
1
  {
2
  "name": "cv-utils",
3
+ "id": "_cv_utils_cuda_49aeecd",
4
  "version": 1,
5
  "license": "Apache-2.0",
6
  "python-depends": [],
build/torch212-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/torch212-cxx11-cu126-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00d565793270cadf91ab9c6fbd6331ef66bbdf3ab17073113931225531e62d9d
3
+ size 3168192
build/torch212-cxx11-cu126-aarch64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _cv_utils_cuda_49aeecd
3
+ ops = torch.ops._cv_utils_cuda_49aeecd
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_cv_utils_cuda_49aeecd::{op_name}"
build/torch212-cxx11-cu126-aarch64-linux/cv_utils/__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-cu126-aarch64-linux/metadata.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cv-utils",
3
+ "id": "_cv_utils_cuda_49aeecd",
4
+ "version": 1,
5
+ "license": "Apache-2.0",
6
+ "python-depends": [],
7
+ "backend": {
8
+ "type": "cuda",
9
+ "archs": [
10
+ "7.0",
11
+ "7.2",
12
+ "7.5",
13
+ "8.0",
14
+ "8.6",
15
+ "8.7",
16
+ "8.9",
17
+ "9.0+PTX"
18
+ ]
19
+ }
20
+ }
build/torch212-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/torch212-cxx11-cu130-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89c478d72fd2d897d7e695b767285646a8c3e0a3a5ebab2212deb111a8b37d99
3
+ size 3633608
build/torch212-cxx11-cu130-aarch64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _cv_utils_cuda_49aeecd
3
+ ops = torch.ops._cv_utils_cuda_49aeecd
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_cv_utils_cuda_49aeecd::{op_name}"
build/torch212-cxx11-cu130-aarch64-linux/cv_utils/__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-aarch64-linux/metadata.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cv-utils",
3
+ "id": "_cv_utils_cuda_49aeecd",
4
+ "version": 1,
5
+ "license": "Apache-2.0",
6
+ "python-depends": [],
7
+ "backend": {
8
+ "type": "cuda",
9
+ "archs": [
10
+ "10.0",
11
+ "11.0",
12
+ "12.0+PTX",
13
+ "7.5",
14
+ "8.0",
15
+ "8.6",
16
+ "8.7",
17
+ "8.9",
18
+ "9.0"
19
+ ]
20
+ }
21
+ }
build/torch212-cxx11-cu132-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/torch212-cxx11-cu132-aarch64-linux/_cv_utils_cuda_49aeecd.abi3.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1735ff8e2658bad40a703aebc231336c330b4495b70aa525f85b135f11f1260
3
+ size 3767376
build/torch212-cxx11-cu132-aarch64-linux/_ops.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ from . import _cv_utils_cuda_49aeecd
3
+ ops = torch.ops._cv_utils_cuda_49aeecd
4
+
5
+ def add_op_namespace_prefix(op_name: str):
6
+ """
7
+ Prefix op by namespace.
8
+ """
9
+ return f"_cv_utils_cuda_49aeecd::{op_name}"
build/torch212-cxx11-cu132-aarch64-linux/cv_utils/__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-aarch64-linux/metadata.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cv-utils",
3
+ "id": "_cv_utils_cuda_49aeecd",
4
+ "version": 1,
5
+ "license": "Apache-2.0",
6
+ "python-depends": [],
7
+ "backend": {
8
+ "type": "cuda",
9
+ "archs": [
10
+ "10.0",
11
+ "11.0",
12
+ "12.0+PTX",
13
+ "7.5",
14
+ "8.0",
15
+ "8.6",
16
+ "8.7",
17
+ "8.9",
18
+ "9.0"
19
+ ]
20
+ }
21
+ }