Skip to content

Commit

Permalink
Use dict.update(...) over |= as it was added in py39 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-tuli authored May 6, 2024
1 parent 05c1487 commit a21348d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compressed_tensors/compressors/sparse_bitmask.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def compress(self, model_state: Dict[str, Tensor]) -> Dict[str, Tensor]:
f"found an existing entry for {key}. The existing entry will "
"be replaced."
)
compressed_dict |= bitmask_dict
compressed_dict.update(bitmask_dict)

return compressed_dict

Expand Down

0 comments on commit a21348d

Please sign in to comment.