blksprs 2.1.9__py3-none-any.whl → 2.1.10__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/__init__.py CHANGED
@@ -4,7 +4,7 @@ import torch
4
4
  # Capture scalar outputs for JIT compilation
5
5
  torch._dynamo.config.capture_scalar_outputs = True
6
6
  # Set version
7
- __version__ = "2.1.9"
7
+ __version__ = "2.1.10"
8
8
 
9
9
  # Imports
10
10
 
blksprs/utils/tools.py CHANGED
@@ -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() == 2:
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.9
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
@@ -1,4 +1,4 @@
1
- blksprs/__init__.py,sha256=ntOKh_5mZ7UdVkFhS8uSbzx8P_XfFt-o7qHX8xjbS3o,1777
1
+ blksprs/__init__.py,sha256=HRF8GN1BJI0zmDCBzKW_LEcIbHfOB1Iaq_DLdRdgt_E,1778
2
2
  blksprs/layouting/distribution_layout.py,sha256=a2C3DG3pYhAaPpOEgSMCRqDK1RYuFenSHqp0JdWMWmQ,5934
3
3
  blksprs/layouting/sparsity_layout.py,sha256=nl4qAJxtteZ6cx4td8FktbPiIfNEZl6zWUmMahv9Wac,11320
4
4
  blksprs/ops/conversion.py,sha256=PEgXwN-UZilr7OUBlOI1NzT8902Baxa3ie9f6K1mGQc,21543
@@ -15,9 +15,9 @@ blksprs/utils/autotuning.py,sha256=SOvVesXmVDbAprKtVGlfqKQ-JyRHfynvxtsbH7Qjem0,2
15
15
  blksprs/utils/benchmarking.py,sha256=dLabDscTFn5NkmOI1g7DnKeTneUYW3RIVv9MDF-8BKc,1271
16
16
  blksprs/utils/blksprs_tensor.py,sha256=Y8YnsFPifvdCf5Khsm8bDVv-589U0N8IsCFlnDETfzE,476
17
17
  blksprs/utils/processing.py,sha256=GcsUl54DDrEoZ0iuWZV5Q0BR2ZML3jWOhypOMxDCsrs,3759
18
- blksprs/utils/tools.py,sha256=vlIH89TzMxotKeqts0Pipr09uf0HDQN9oQYGSGfAdk4,751
18
+ blksprs/utils/tools.py,sha256=3puJ7S-Pfb1ILnzco09pz7RQOt7Vrkj-LpPpnj3zZHY,791
19
19
  blksprs/utils/validation.py,sha256=P98sCk6PZCQB0wO3scGTJIXfkv5EpHFM_uNHBXr42n4,4844
20
- blksprs-2.1.9.dist-info/METADATA,sha256=jpHxFxI0XRXoBeN-2CtVjoR_1Niws9OCUx-YvdIWCq8,9599
21
- blksprs-2.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
- blksprs-2.1.9.dist-info/top_level.txt,sha256=qyp0IHeY3H2GQA97i4hk_To5rRBS2YcE1HRPSLy04fk,8
23
- blksprs-2.1.9.dist-info/RECORD,,
20
+ blksprs-2.1.10.dist-info/METADATA,sha256=iLNs0s3B__4F7qExso3bGsWit7_cBb5eViiT-1yt8Qk,9600
21
+ blksprs-2.1.10.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
22
+ blksprs-2.1.10.dist-info/top_level.txt,sha256=qyp0IHeY3H2GQA97i4hk_To5rRBS2YcE1HRPSLy04fk,8
23
+ blksprs-2.1.10.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5