Skip to content

Commit 0b7b03d

Browse files
namgyu-younpytorchmergebot
authored andcommitted
fix typo : whic -> which (#2495)
Simply fix the typo : whic -> which Pull Request resolved: #2495 Approved by: https://github.com/jainapurva
1 parent e9644da commit 0b7b03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchao/prototype/sparsity/pruner/saliency_pruner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SaliencyPruner(BaseStructuredSparsifier):
1111
Prune rows based on the saliency (L1 norm) of each row.
1212
1313
This pruner works on N-Dimensional weight tensors.
14-
For each row, we will calculate the saliency, whic is the sum the L1 norm of all weights in that row.
14+
For each row, we will calculate the saliency, which is the sum the L1 norm of all weights in that row.
1515
We expect that the resulting saliency vector has the same shape as our mask.
1616
We then pick elements to remove until we reach the target sparsity_level.
1717
"""

0 commit comments

Comments
 (0)