blksprs 1.9.1__py3-none-any.whl → 1.9.3__py3-none-any.whl
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/utils/blksprs_tensor.py +3 -1
- blksprs/utils/processing.py +4 -4
- {blksprs-1.9.1.dist-info → blksprs-1.9.3.dist-info}/METADATA +6 -4
- {blksprs-1.9.1.dist-info → blksprs-1.9.3.dist-info}/RECORD +6 -6
- {blksprs-1.9.1.dist-info → blksprs-1.9.3.dist-info}/WHEEL +1 -1
- {blksprs-1.9.1.dist-info → blksprs-1.9.3.dist-info}/top_level.txt +0 -0
blksprs/utils/blksprs_tensor.py
CHANGED
blksprs/utils/processing.py
CHANGED
|
@@ -66,9 +66,9 @@ def apply_function_applicable_row_wise(x: BlksprsTensor, sparsity_layout: Tensor
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
def _pack_layout(sparsity_layout: Tensor) -> BlksprsTensor:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
non_zero_rows = torch.any(
|
|
72
|
-
sparsity_layout_filtered =
|
|
69
|
+
sparsity_layout_reshaped = sparsity_layout.reshape(1, sparsity_layout.size(0) * sparsity_layout.size(1),
|
|
70
|
+
sparsity_layout.size(2))
|
|
71
|
+
non_zero_rows = torch.any(sparsity_layout_reshaped, dim=-1)
|
|
72
|
+
sparsity_layout_filtered = sparsity_layout_reshaped[non_zero_rows].unsqueeze(0)
|
|
73
73
|
|
|
74
74
|
return sparsity_layout_filtered
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: blksprs
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.3
|
|
4
4
|
Summary: A lightweight library for operations on blocksparse 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
|
|
@@ -8,14 +8,15 @@ Project-URL: Bugtracker, https://github.com/FelixSchoen/blksprs/issues
|
|
|
8
8
|
Requires-Python: >=3.11
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
Requires-Dist: torch
|
|
11
|
-
|
|
12
|
-
Requires-Dist: build; extra == "build"
|
|
11
|
+
Requires-Dist: numpy
|
|
13
12
|
Provides-Extra: test
|
|
14
13
|
Requires-Dist: pytest; extra == "test"
|
|
15
14
|
Requires-Dist: pytest-xdist; extra == "test"
|
|
16
15
|
Requires-Dist: pytest-cov; extra == "test"
|
|
17
16
|
Requires-Dist: coverage; extra == "test"
|
|
18
17
|
Requires-Dist: matplotlib; extra == "test"
|
|
18
|
+
Provides-Extra: build
|
|
19
|
+
Requires-Dist: build; extra == "build"
|
|
19
20
|
|
|
20
21
|
# blksprs
|
|
21
22
|
|
|
@@ -83,7 +84,8 @@ We recommend installing blksprs from [PyPI](https://pypi.org/project/blksprs/) u
|
|
|
83
84
|
|
|
84
85
|
### Dependencies
|
|
85
86
|
|
|
86
|
-
- [PyTorch](https://pytorch.org/) (built with v2.5.
|
|
87
|
+
- [PyTorch](https://pytorch.org/) (built with v2.5.1)
|
|
88
|
+
- _[NumPy](https://numpy.org/) (to get rid of warnings, built with v2.2.0)_
|
|
87
89
|
- _[Triton](https://github.com/triton-lang/triton) (included with PyTorch)_
|
|
88
90
|
|
|
89
91
|
## Changelog
|
|
@@ -14,12 +14,12 @@ blksprs/ops/misc/broadcast_ops.py,sha256=cPtRJa3pkZfY1QG51CJ-zDn4SK-CRpX5LEXoKGG
|
|
|
14
14
|
blksprs/ops/misc/exp.py,sha256=FnSFosBfJHuiEbD0MD-i4axLghRn4a0f8KvHXrKBB6M,3802
|
|
15
15
|
blksprs/ops/misc/row_wise.py,sha256=U4Kk0-P4oOuMNjMHXxP2gP9njMIeMfz8RZrzItNIF94,17229
|
|
16
16
|
blksprs/utils/benchmarking.py,sha256=4pLVlnPW_2EM-NT3n4SClaRznVYEljztLbJcccz8kZE,1360
|
|
17
|
-
blksprs/utils/blksprs_tensor.py,sha256=
|
|
17
|
+
blksprs/utils/blksprs_tensor.py,sha256=pfoz59aJixj_fIoFx76ySiygwRQUemmgjMKepZ2c4j0,244
|
|
18
18
|
blksprs/utils/layout_utils.py,sha256=49ZdPS_gMn_IrWty3FARbi2rda5a8g5DmAEL8LOrC30,670
|
|
19
|
-
blksprs/utils/processing.py,sha256=
|
|
19
|
+
blksprs/utils/processing.py,sha256=WLuMJQ8v-YovXwcDjhlDn3N31WMZXrtyeeyKSgq_zn4,3642
|
|
20
20
|
blksprs/utils/tools.py,sha256=r7Y4C37vfSWUyQTGwa8NyRqgovmsq9hMufkenqYHOxo,539
|
|
21
21
|
blksprs/utils/validation.py,sha256=CbxBbeQWJo8wox5eMoVzaTlP9FVBwt3-gxUOmi3EUgw,4213
|
|
22
|
-
blksprs-1.9.
|
|
23
|
-
blksprs-1.9.
|
|
24
|
-
blksprs-1.9.
|
|
25
|
-
blksprs-1.9.
|
|
22
|
+
blksprs-1.9.3.dist-info/METADATA,sha256=bw4yOVw09ggHlKLVjOWE2HCjT-6Iit2v4jtU3zbhTV8,8670
|
|
23
|
+
blksprs-1.9.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
24
|
+
blksprs-1.9.3.dist-info/top_level.txt,sha256=qyp0IHeY3H2GQA97i4hk_To5rRBS2YcE1HRPSLy04fk,8
|
|
25
|
+
blksprs-1.9.3.dist-info/RECORD,,
|
|
File without changes
|