Skip to content

Commit dd90747

Browse files
ZhouXiaolinZelaren
andauthored
fix nm_ratio (#2023)
Co-authored-by: zhouxiaolin <[email protected]>
1 parent a9b7137 commit dd90747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coremltools/optimize/torch/pruning/magnitude_pruner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def __attrs_post_init__(self):
304304
if self.initial_sparsity is not None and self.initial_sparsity > 0.0:
305305
raise ValueError(
306306
f"Received initial_sparsity = {self.initial_sparsity} and "
307-
f"n_m_ratio = {self.nm_ratio}. When n_m_ratio != None, the only allowed "
307+
f"n_m_ratio = {self.n_m_ratio}. When n_m_ratio != None, the only allowed "
308308
f"value of initial_sparsity is 0."
309309
)
310310

0 commit comments

Comments
 (0)