blksprs 2.1.9__tar.gz → 2.1.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {blksprs-2.1.9 → blksprs-2.1.10}/PKG-INFO +1 -1
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/__init__.py +1 -1
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/tools.py +3 -1
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/PKG-INFO +1 -1
- {blksprs-2.1.9 → blksprs-2.1.10}/pyproject.toml +1 -1
- {blksprs-2.1.9 → blksprs-2.1.10}/README.md +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/layouting/distribution_layout.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/layouting/sparsity_layout.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/conversion.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/distribution.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/flow.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/matmul.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/misc/broadcast_ops.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/misc/row_wise.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/partitioning.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/repeat.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/softmax.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/transpose.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/autotuning.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/benchmarking.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/blksprs_tensor.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/processing.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/validation.py +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/SOURCES.txt +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/dependency_links.txt +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/requires.txt +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/top_level.txt +0 -0
- {blksprs-2.1.9 → blksprs-2.1.10}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blksprs
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.10
|
|
4
4
|
Summary: A lightweight library for operations on block-sparse matrices in PyTorch.
|
|
5
5
|
Author-email: Felix Schön <schoen@kr.tuwien.ac.at>
|
|
6
6
|
Project-URL: Homepage, https://github.com/FelixSchoen/blksprs
|
|
@@ -16,7 +16,9 @@ def undo_shape_blocksparse(x: Tensor, shape: Size | tuple[int, ...]) -> Tensor:
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def stride(x: Tensor):
|
|
19
|
-
if x.dim() ==
|
|
19
|
+
if x.dim() == 1:
|
|
20
|
+
return 1
|
|
21
|
+
elif x.dim() == 2:
|
|
20
22
|
return x.size(1), 1
|
|
21
23
|
elif x.dim() == 3:
|
|
22
24
|
return x.size(1) * x.size(2), x.size(2), 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blksprs
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.10
|
|
4
4
|
Summary: A lightweight library for operations on block-sparse matrices in PyTorch.
|
|
5
5
|
Author-email: Felix Schön <schoen@kr.tuwien.ac.at>
|
|
6
6
|
Project-URL: Homepage, https://github.com/FelixSchoen/blksprs
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|