title: How to prune weights less than a threshold in PyTorch?
body: <p><em>How to prune weights of a CNN (convolution neural network) model which is less than a <strong>threshold value</strong> (let's consider prune all weights which are &lt;= 1).</em> </p>
  
  <p>How we can achieve that for a weight file saved in .pth format in pytorch?</p>