We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66507ba commit 9f7e408Copy full SHA for 9f7e408
utils/utils.py
@@ -49,8 +49,6 @@ def forward(self, x):
49
return self.apply(x)
50
51
def apply(self, x):
52
- nonzero = (x.abs() > self.threshold).sum()
53
- print(f"Nonzero proportion: {nonzero / x.numel()}")
54
return x.abs().gt(self.threshold) * x
55
56
def get_threshold(self):
0 commit comments