Skip to content

Commit

Permalink
Fix: cases with empty sparsity config
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli committed Jan 14, 2025
1 parent 078da31 commit 5e81733
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _sparsity_scheme_map_from_config(
:return: A dictionary mapping target layer names to their corresponding
sparsity compression configurations
"""
if (sparsity_config := config.get(SPARSITY_CONFIG_NAME)) is None:
if not (sparsity_config := config.get(SPARSITY_CONFIG_NAME)):
return dict()

sparsity_config = SparsityCompressionConfig.model_validate(
Expand Down

0 comments on commit 5e81733

Please sign in to comment.