Skip to content

Commit e8e7a7d

Browse files
Update src/compressed_tensors/compressors/sparse_compressors/sparse_24_bitmask.py
Co-authored-by: Brian Dellabetta <brian-dellabetta@users.noreply.github.com>
1 parent 18aebfc commit e8e7a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compressed_tensors/compressors/sparse_compressors/sparse_24_bitmask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def from_dense(
9292
:return: instantiated compressed tensor
9393
"""
9494
shape = list(tensor.shape)
95-
if tensor.device.type == "meta":
95+
if tensor.is_meta:
9696
compressed, bitmask = sparse24_bitmask_compress(
9797
tensor, sparsity_structure=sparsity_structure
9898
)

0 commit comments

Comments
 (0)