blksprs 1.9.1__py3-none-any.whl → 1.9.2__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.
@@ -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
- sparsity_layout_resized = sparsity_layout.resize(1, sparsity_layout.size(0) * sparsity_layout.size(1),
70
- sparsity_layout.size(2))
71
- non_zero_rows = torch.any(sparsity_layout_resized, dim=-1)
72
- sparsity_layout_filtered = sparsity_layout_resized[non_zero_rows].unsqueeze(0)
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.1
3
+ Version: 1.9.2
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
- Provides-Extra: build
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.0)
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
@@ -16,10 +16,10 @@ blksprs/ops/misc/row_wise.py,sha256=U4Kk0-P4oOuMNjMHXxP2gP9njMIeMfz8RZrzItNIF94,
16
16
  blksprs/utils/benchmarking.py,sha256=4pLVlnPW_2EM-NT3n4SClaRznVYEljztLbJcccz8kZE,1360
17
17
  blksprs/utils/blksprs_tensor.py,sha256=VjplBgDhnf9sxf-1R5feA0xp5FDCDdaeZmCeoIRdCnc,151
18
18
  blksprs/utils/layout_utils.py,sha256=49ZdPS_gMn_IrWty3FARbi2rda5a8g5DmAEL8LOrC30,670
19
- blksprs/utils/processing.py,sha256=6wLvPTWTzXKvXJiiwGQ0iLPaVSrV7FCff6Ru8HrJsro,3636
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.1.dist-info/METADATA,sha256=6uy9kTiTgqyQrBgPBeGBYy6orKnJwTHyPUEaEgVu__g,8573
23
- blksprs-1.9.1.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
24
- blksprs-1.9.1.dist-info/top_level.txt,sha256=qyp0IHeY3H2GQA97i4hk_To5rRBS2YcE1HRPSLy04fk,8
25
- blksprs-1.9.1.dist-info/RECORD,,
22
+ blksprs-1.9.2.dist-info/METADATA,sha256=JIHA58YnLfFrUyAOsPmHMWbDz_XmkDiXypLhg1ijO0E,8670
23
+ blksprs-1.9.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
24
+ blksprs-1.9.2.dist-info/top_level.txt,sha256=qyp0IHeY3H2GQA97i4hk_To5rRBS2YcE1HRPSLy04fk,8
25
+ blksprs-1.9.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5