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.
Files changed (28) hide show
  1. {blksprs-2.1.9 → blksprs-2.1.10}/PKG-INFO +1 -1
  2. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/__init__.py +1 -1
  3. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/tools.py +3 -1
  4. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/PKG-INFO +1 -1
  5. {blksprs-2.1.9 → blksprs-2.1.10}/pyproject.toml +1 -1
  6. {blksprs-2.1.9 → blksprs-2.1.10}/README.md +0 -0
  7. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/layouting/distribution_layout.py +0 -0
  8. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/layouting/sparsity_layout.py +0 -0
  9. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/conversion.py +0 -0
  10. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/distribution.py +0 -0
  11. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/flow.py +0 -0
  12. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/matmul.py +0 -0
  13. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/misc/broadcast_ops.py +0 -0
  14. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/misc/row_wise.py +0 -0
  15. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/partitioning.py +0 -0
  16. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/repeat.py +0 -0
  17. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/softmax.py +0 -0
  18. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/ops/transpose.py +0 -0
  19. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/autotuning.py +0 -0
  20. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/benchmarking.py +0 -0
  21. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/blksprs_tensor.py +0 -0
  22. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/processing.py +0 -0
  23. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs/utils/validation.py +0 -0
  24. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/SOURCES.txt +0 -0
  25. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/dependency_links.txt +0 -0
  26. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/requires.txt +0 -0
  27. {blksprs-2.1.9 → blksprs-2.1.10}/blksprs.egg-info/top_level.txt +0 -0
  28. {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.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
@@ -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
 
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "blksprs"
3
- version = "2.1.9"
3
+ version = "2.1.10"
4
4
  authors = [{ name = "Felix Schön", email = "schoen@kr.tuwien.ac.at" }]
5
5
  description = "A lightweight library for operations on block-sparse matrices in PyTorch."
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes