Build uploaded using `kernels`.
Browse files- build/torch210-cxx11-cu126-x86_64-linux/__init__.py +0 -25
- build/torch210-cxx11-cu126-x86_64-linux/_mra_b91b835.abi3.so +0 -3
- build/torch210-cxx11-cu126-x86_64-linux/_ops.py +0 -9
- build/torch210-cxx11-cu126-x86_64-linux/metadata.json +0 -1
- build/torch210-cxx11-cu126-x86_64-linux/mra/__init__.py +0 -26
- build/torch210-cxx11-cu128-x86_64-linux/__init__.py +0 -25
- build/torch210-cxx11-cu128-x86_64-linux/_mra_b91b835.abi3.so +0 -3
- build/torch210-cxx11-cu128-x86_64-linux/_ops.py +0 -9
- build/torch210-cxx11-cu128-x86_64-linux/metadata.json +0 -1
- build/torch210-cxx11-cu128-x86_64-linux/mra/__init__.py +0 -26
- build/torch210-cxx11-cu130-x86_64-linux/__init__.py +0 -25
- build/torch210-cxx11-cu130-x86_64-linux/_mra_b91b835.abi3.so +0 -3
- build/torch210-cxx11-cu130-x86_64-linux/_ops.py +0 -9
- build/torch210-cxx11-cu130-x86_64-linux/metadata.json +0 -1
- build/torch210-cxx11-cu130-x86_64-linux/mra/__init__.py +0 -26
- build/torch28-cxx11-cu126-x86_64-linux/__init__.py +0 -25
- build/torch28-cxx11-cu126-x86_64-linux/_mra_b91b835.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 -1
- 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_b91b835.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 -1
- 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_b91b835.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 -1
- build/torch28-cxx11-cu129-x86_64-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_b91b835.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 -1
- build/torch29-cxx11-cu126-x86_64-linux/mra/__init__.py +0 -26
- build/torch29-cxx11-cu128-x86_64-linux/__init__.py +0 -25
- build/torch29-cxx11-cu128-x86_64-linux/_mra_b91b835.abi3.so +0 -3
- build/torch29-cxx11-cu128-x86_64-linux/_ops.py +0 -9
- build/torch29-cxx11-cu128-x86_64-linux/metadata.json +0 -1
- build/torch29-cxx11-cu128-x86_64-linux/mra/__init__.py +0 -26
- build/torch29-cxx11-cu130-x86_64-linux/__init__.py +0 -25
- build/torch29-cxx11-cu130-x86_64-linux/_mra_b91b835.abi3.so +0 -3
- build/torch29-cxx11-cu130-x86_64-linux/_ops.py +0 -9
- build/torch29-cxx11-cu130-x86_64-linux/metadata.json +0 -1
- build/torch29-cxx11-cu130-x86_64-linux/mra/__init__.py +0 -26
build/torch210-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/torch210-cxx11-cu126-x86_64-linux/_mra_b91b835.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fb5be144697731fba4406b4ed16232dca9b2c05cb7715646efe3679e7b6343b0
|
| 3 |
-
size 2451456
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cxx11-cu126-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_b91b835
|
| 3 |
-
ops = torch.ops._mra_b91b835
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_b91b835::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cxx11-cu126-x86_64-linux/metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"python-depends":[]}
|
|
|
|
|
|
build/torch210-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/torch210-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/torch210-cxx11-cu128-x86_64-linux/_mra_b91b835.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2719092133c64747d7527e90b18e4bf88616787205bc49ca513544b8d93b7db3
|
| 3 |
-
size 2719824
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cxx11-cu128-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_b91b835
|
| 3 |
-
ops = torch.ops._mra_b91b835
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_b91b835::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cxx11-cu128-x86_64-linux/metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"python-depends":[]}
|
|
|
|
|
|
build/torch210-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/torch210-cxx11-cu130-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/torch210-cxx11-cu130-x86_64-linux/_mra_b91b835.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4e562370de6b1e766e9fa49f731fc4516ec726643cdbb0a57d6a291359ea5954
|
| 3 |
-
size 2641336
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cxx11-cu130-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_b91b835
|
| 3 |
-
ops = torch.ops._mra_b91b835
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_b91b835::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch210-cxx11-cu130-x86_64-linux/metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"python-depends":[]}
|
|
|
|
|
|
build/torch210-cxx11-cu130-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-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_b91b835.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:66023954635a31836ddef4a3d072796477d2df17611a3b0acadc83e4b9d644ad
|
| 3 |
-
size 2446064
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu126-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_b91b835
|
| 3 |
-
ops = torch.ops._mra_b91b835
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_b91b835::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu126-x86_64-linux/metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"python-depends":[]}
|
|
|
|
|
|
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_b91b835.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:daaac316543e2c585eb477e8c494ee342f46e292048e6ac0d3637fce1577bf68
|
| 3 |
-
size 2714440
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu128-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_b91b835
|
| 3 |
-
ops = torch.ops._mra_b91b835
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_b91b835::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu128-x86_64-linux/metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"python-depends":[]}
|
|
|
|
|
|
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_b91b835.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9438df3b497af7e80e214b74bf4b9e789d3cd1f856105dc251c5de6ba750bdb4
|
| 3 |
-
size 2748224
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu129-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_b91b835
|
| 3 |
-
ops = torch.ops._mra_b91b835
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_b91b835::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch28-cxx11-cu129-x86_64-linux/metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"python-depends":[]}
|
|
|
|
|
|
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-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_b91b835.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:eafd95e7fa0334563e9b39d8381fa91af8f65d9d654185ffcf63a07e9be1b6e3
|
| 3 |
-
size 2446040
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu126-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_b91b835
|
| 3 |
-
ops = torch.ops._mra_b91b835
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_b91b835::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu126-x86_64-linux/metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"python-depends":[]}
|
|
|
|
|
|
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")))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-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/torch29-cxx11-cu128-x86_64-linux/_mra_b91b835.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b3c5b1dc0d06c9c9bd4813ef6617a3d61d7fe8785be8b000c69a7ecf800572d6
|
| 3 |
-
size 2714408
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu128-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_b91b835
|
| 3 |
-
ops = torch.ops._mra_b91b835
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_b91b835::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu128-x86_64-linux/metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"python-depends":[]}
|
|
|
|
|
|
build/torch29-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/torch29-cxx11-cu130-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-cu130-x86_64-linux/_mra_b91b835.abi3.so
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:95a3d441fa857456fbadde43ecf651976f4aa76f1e886e2327fe794e6e214897
|
| 3 |
-
size 2640024
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu130-x86_64-linux/_ops.py
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
import torch
|
| 2 |
-
from . import _mra_b91b835
|
| 3 |
-
ops = torch.ops._mra_b91b835
|
| 4 |
-
|
| 5 |
-
def add_op_namespace_prefix(op_name: str):
|
| 6 |
-
"""
|
| 7 |
-
Prefix op by namespace.
|
| 8 |
-
"""
|
| 9 |
-
return f"_mra_b91b835::{op_name}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/torch29-cxx11-cu130-x86_64-linux/metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"python-depends":[]}
|
|
|
|
|
|
build/torch29-cxx11-cu130-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")))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|