We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18aebfc commit e8e7a7dCopy full SHA for e8e7a7d
src/compressed_tensors/compressors/sparse_compressors/sparse_24_bitmask.py
@@ -92,7 +92,7 @@ def from_dense(
92
:return: instantiated compressed tensor
93
"""
94
shape = list(tensor.shape)
95
- if tensor.device.type == "meta":
+ if tensor.is_meta:
96
compressed, bitmask = sparse24_bitmask_compress(
97
tensor, sparsity_structure=sparsity_structure
98
)
0 commit comments