Skip to content

Commit

Permalink
typo's
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli committed Jan 8, 2025
1 parent 5f5b5c3 commit e8f26d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ def compress(
f"Compressing model with {len(model_state)} parameterized layers..."
)
for name, value in tqdm(model_state.items(), desc="Compressing model"):
ignored = not self.should_compress(name, compression_targets)
if ignored:
if not self.should_compress(name, compression_targets):
compressed_dict[name] = value
continue
prefix = name
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def induce_sparsity(tensor, sparsity_ratio) -> "torch.Tensor":

def is_gpu_available():
"""
Check for GPU and warn if not found
:return: True if a GPU is available, False otherwise
"""
try:
import torch # noqa: F401
Expand Down

0 comments on commit e8f26d4

Please sign in to comment.