Kernels:
Trusted publisher
Remove builds incompatible with kernels >= 0.14
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- build/torch210-cu128-x86_64-windows/__init__.py +0 -25
- build/torch210-cu128-x86_64-windows/_mra_cuda_6ec000c.pyd +0 -3
- build/torch210-cu128-x86_64-windows/_ops.py +0 -9
- build/torch210-cu128-x86_64-windows/metadata.json +0 -20
- build/torch210-cu128-x86_64-windows/mra/__init__.py +0 -26
- build/torch211-cu128-x86_64-windows/__init__.py +0 -25
- build/torch211-cu128-x86_64-windows/_mra_cuda_2f395ab.pyd +0 -3
- build/torch211-cu128-x86_64-windows/_ops.py +0 -9
- build/torch211-cu128-x86_64-windows/metadata.json +0 -20
- build/torch211-cu128-x86_64-windows/mra/__init__.py +0 -26
- build/torch27-cxx11-cu118-x86_64-linux/mra/__init__.py +0 -25
- build/torch27-cxx11-cu118-x86_64-linux/mra/__pycache__/__init__.cpython-313.pyc +0 -0
- build/torch27-cxx11-cu118-x86_64-linux/mra/__pycache__/_ops.cpython-313.pyc +0 -0
- build/torch27-cxx11-cu118-x86_64-linux/mra/_mra_9e0f4db.abi3.so +0 -3
- build/torch27-cxx11-cu118-x86_64-linux/mra/_ops.py +0 -9
- build/torch27-cxx11-cu126-x86_64-linux/mra/__init__.py +0 -25
- build/torch27-cxx11-cu126-x86_64-linux/mra/__pycache__/__init__.cpython-313.pyc +0 -0
- build/torch27-cxx11-cu126-x86_64-linux/mra/__pycache__/_ops.cpython-313.pyc +0 -0
- build/torch27-cxx11-cu126-x86_64-linux/mra/_mra_9e0f4db.abi3.so +0 -3
- build/torch27-cxx11-cu126-x86_64-linux/mra/_ops.py +0 -9
- build/torch27-cxx11-cu128-x86_64-linux/mra/__init__.py +0 -25
- build/torch27-cxx11-cu128-x86_64-linux/mra/__pycache__/__init__.cpython-313.pyc +0 -0
- build/torch27-cxx11-cu128-x86_64-linux/mra/__pycache__/_ops.cpython-313.pyc +0 -0
- build/torch27-cxx11-cu128-x86_64-linux/mra/_mra_9e0f4db.abi3.so +0 -3
- build/torch27-cxx11-cu128-x86_64-linux/mra/_ops.py +0 -9
- build/torch28-cxx11-cu126-x86_64-linux/__init__.py +0 -25
- build/torch28-cxx11-cu126-x86_64-linux/_mra_41ac1dc.abi3.so +0 -3
- build/torch28-cxx11-cu126-x86_64-linux/_ops.py +0 -9
- build/torch28-cxx11-cu126-x86_64-linux/metadata.json +0 -4
- build/torch28-cxx11-cu126-x86_64-linux/mra/__init__.py +0 -26
- build/torch28-cxx11-cu128-x86_64-linux/__init__.py +0 -25
- build/torch28-cxx11-cu128-x86_64-linux/_mra_41ac1dc.abi3.so +0 -3
- build/torch28-cxx11-cu128-x86_64-linux/_ops.py +0 -9
- build/torch28-cxx11-cu128-x86_64-linux/metadata.json +0 -4
- build/torch28-cxx11-cu128-x86_64-linux/mra/__init__.py +0 -26
- build/torch28-cxx11-cu129-x86_64-linux/__init__.py +0 -25
- build/torch28-cxx11-cu129-x86_64-linux/_mra_41ac1dc.abi3.so +0 -3
- build/torch28-cxx11-cu129-x86_64-linux/_ops.py +0 -9
- build/torch28-cxx11-cu129-x86_64-linux/metadata.json +0 -4
- build/torch28-cxx11-cu129-x86_64-linux/mra/__init__.py +0 -26
- build/torch29-cxx11-cu126-aarch64-linux/__init__.py +0 -25
- build/torch29-cxx11-cu126-aarch64-linux/_mra_cuda_8d73b81.abi3.so +0 -3
- build/torch29-cxx11-cu126-aarch64-linux/_ops.py +0 -9
- build/torch29-cxx11-cu126-aarch64-linux/metadata.json +0 -17
- build/torch29-cxx11-cu126-aarch64-linux/mra/__init__.py +0 -26
- build/torch29-cxx11-cu126-x86_64-linux/__init__.py +0 -25
- build/torch29-cxx11-cu126-x86_64-linux/_mra_cuda_8d73b81.abi3.so +0 -3
- build/torch29-cxx11-cu126-x86_64-linux/_ops.py +0 -9
- build/torch29-cxx11-cu126-x86_64-linux/metadata.json +0 -17
- build/torch29-cxx11-cu126-x86_64-linux/mra/__init__.py +0 -26
build/torch210-cu128-x86_64-windows/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cu128-x86_64-windows/_mra_cuda_6ec000c.pyd
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:aa6a072526b11ba258ee3c95711b1582a501a40829c22bbd62b493730faee0ee
|
| 3 |
-
size 795648
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cu128-x86_64-windows/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_cuda_6ec000c
|
| 3 |
-
ops = torch.ops._mra_cuda_6ec000c
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_cuda_6ec000c::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cu128-x86_64-windows/metadata.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
| 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-cu128-x86_64-windows/mra/__init__.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 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/torch211-cu128-x86_64-windows/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch211-cu128-x86_64-windows/_mra_cuda_2f395ab.pyd
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:666160c8ca0575c243f0da231efe234e43ca5dd686c73245a83c83a44e1958b7
|
| 3 |
-
size 796160
|
|
|
|
|
|
|
|
|
|
|
|
build/torch211-cu128-x86_64-windows/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_cuda_2f395ab
|
| 3 |
-
ops = torch.ops._mra_cuda_2f395ab
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_cuda_2f395ab::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch211-cu128-x86_64-windows/metadata.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
| 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/torch211-cu128-x86_64-windows/mra/__init__.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 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/torch27-cxx11-cu118-x86_64-linux/mra/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch27-cxx11-cu118-x86_64-linux/mra/__pycache__/__init__.cpython-313.pyc
DELETED
|
Binary file (1.85 kB)
|
|
|
build/torch27-cxx11-cu118-x86_64-linux/mra/__pycache__/_ops.cpython-313.pyc
DELETED
|
Binary file (505 Bytes)
|
|
|
build/torch27-cxx11-cu118-x86_64-linux/mra/_mra_9e0f4db.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0d0971139abac58983b682ff6200585383f27f5050766eda054f5cbd015cf011
|
| 3 |
-
size 2289080
|
|
|
|
|
|
|
|
|
|
|
|
build/torch27-cxx11-cu118-x86_64-linux/mra/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_9e0f4db
|
| 3 |
-
ops = torch.ops._mra_9e0f4db
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_9e0f4db::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch27-cxx11-cu126-x86_64-linux/mra/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch27-cxx11-cu126-x86_64-linux/mra/__pycache__/__init__.cpython-313.pyc
DELETED
|
Binary file (1.85 kB)
|
|
|
build/torch27-cxx11-cu126-x86_64-linux/mra/__pycache__/_ops.cpython-313.pyc
DELETED
|
Binary file (505 Bytes)
|
|
|
build/torch27-cxx11-cu126-x86_64-linux/mra/_mra_9e0f4db.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:639a1f35e23433584b3baea0105a7b3005c7b6bfbc55eb2b279c2ddfc7c3e656
|
| 3 |
-
size 2334464
|
|
|
|
|
|
|
|
|
|
|
|
build/torch27-cxx11-cu126-x86_64-linux/mra/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_9e0f4db
|
| 3 |
-
ops = torch.ops._mra_9e0f4db
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_9e0f4db::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch27-cxx11-cu128-x86_64-linux/mra/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch27-cxx11-cu128-x86_64-linux/mra/__pycache__/__init__.cpython-313.pyc
DELETED
|
Binary file (1.85 kB)
|
|
|
build/torch27-cxx11-cu128-x86_64-linux/mra/__pycache__/_ops.cpython-313.pyc
DELETED
|
Binary file (505 Bytes)
|
|
|
build/torch27-cxx11-cu128-x86_64-linux/mra/_mra_9e0f4db.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9950985a6a1b46593e55a3b8b4b93f7c691d5a37737ce24a0afb2a32e3b0bba9
|
| 3 |
-
size 2602624
|
|
|
|
|
|
|
|
|
|
|
|
build/torch27-cxx11-cu128-x86_64-linux/mra/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_9e0f4db
|
| 3 |
-
ops = torch.ops._mra_9e0f4db
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_9e0f4db::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu126-x86_64-linux/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu126-x86_64-linux/_mra_41ac1dc.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1a9c897734397d26fc2b0a86a4f4fb6a60762ed9ccc47490bc9b7a2452926440
|
| 3 |
-
size 2446064
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu126-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_41ac1dc
|
| 3 |
-
ops = torch.ops._mra_41ac1dc
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_41ac1dc::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu126-x86_64-linux/metadata.json
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"version": 1,
|
| 3 |
-
"python-depends": []
|
| 4 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu126-x86_64-linux/mra/__init__.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 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/torch28-cxx11-cu128-x86_64-linux/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu128-x86_64-linux/_mra_41ac1dc.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7b6b507f6b840954a5193733b155258fcfdb9525b42bb74923eff4d8e8979761
|
| 3 |
-
size 2714440
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu128-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_41ac1dc
|
| 3 |
-
ops = torch.ops._mra_41ac1dc
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_41ac1dc::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu128-x86_64-linux/metadata.json
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"version": 1,
|
| 3 |
-
"python-depends": []
|
| 4 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu128-x86_64-linux/mra/__init__.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 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/torch28-cxx11-cu129-x86_64-linux/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu129-x86_64-linux/_mra_41ac1dc.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fc073211a7e153133529c099f8eec9bd97369907c52dae29ee7a3f68d4a063c5
|
| 3 |
-
size 2748224
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu129-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_41ac1dc
|
| 3 |
-
ops = torch.ops._mra_41ac1dc
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_41ac1dc::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu129-x86_64-linux/metadata.json
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"version": 1,
|
| 3 |
-
"python-depends": []
|
| 4 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu129-x86_64-linux/mra/__init__.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 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/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu126-aarch64-linux/_mra_cuda_8d73b81.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:60e59a7c3b2e88d981aa9c670310b766a8697ff65e4a95ceb208945629e93000
|
| 3 |
-
size 2566160
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu126-aarch64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_cuda_8d73b81
|
| 3 |
-
ops = torch.ops._mra_cuda_8d73b81
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_cuda_8d73b81::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu126-aarch64-linux/metadata.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 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-cu126-aarch64-linux/mra/__init__.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 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-x86_64-linux/__init__.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
from ._ops import ops
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
def index_max(index_vals: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 5 |
-
return ops.index_max(index_vals, indices, A_num_block, B_num_block)
|
| 6 |
-
|
| 7 |
-
def mm_to_sparse(dense_A: torch.Tensor, dense_B: torch.Tensor, indices: torch.Tensor):
|
| 8 |
-
return ops.mm_to_sparse(dense_A, dense_B, indices)
|
| 9 |
-
|
| 10 |
-
def sparse_dense_mm(sparse_A: torch.Tensor, indices: torch.Tensor, dense_B: torch.Tensor, A_num_block: int):
|
| 11 |
-
return ops.sparse_dense_mm(sparse_A, indices, dense_B, A_num_block)
|
| 12 |
-
|
| 13 |
-
def reduce_sum(sparse_A: torch.Tensor, indices: torch.Tensor, A_num_block: int, B_num_block: int):
|
| 14 |
-
return ops.reduce_sum(sparse_A, indices, A_num_block, B_num_block)
|
| 15 |
-
|
| 16 |
-
def scatter(dense_A: torch.Tensor, indices: torch.Tensor, B_num_block: int):
|
| 17 |
-
return ops.scatter(dense_A, indices, B_num_block)
|
| 18 |
-
|
| 19 |
-
__all__ = [
|
| 20 |
-
"index_max",
|
| 21 |
-
"mm_to_sparse",
|
| 22 |
-
"sparse_dense_mm",
|
| 23 |
-
"reduce_sum",
|
| 24 |
-
"scatter",
|
| 25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu126-x86_64-linux/_mra_cuda_8d73b81.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3a6eb0aa709d3bcbd98dde99e2aaa98a980942d70f23ccf003ea534b9d21edbb
|
| 3 |
-
size 2446064
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu126-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_cuda_8d73b81
|
| 3 |
-
ops = torch.ops._mra_cuda_8d73b81
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_cuda_8d73b81::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu126-x86_64-linux/metadata.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 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-cu126-x86_64-linux/mra/__init__.py
DELETED
|
@@ -1,26 +0,0 @@
|
|
| 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")))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|