Skip to content

Commit

Permalink
Update: Condiition to use enum instead of raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli committed Jan 10, 2025
1 parent 8163759 commit 91aa19d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def decompress(self, model_path: str, model: Module):

if (
self.sparsity_compressor is not None
and self.sparsity_config.format != "dense"
and self.sparsity_config.format != CompressionFormat.dense.value
):
# Sparse decompression is applied on the model_path
dense_gen = self.sparsity_compressor.decompress(model_path)
Expand Down

0 comments on commit 91aa19d

Please sign in to comment.