class_docstr: Constrains the weights to be non-negative.
class_docstr_tok: ["Constrains","the","weights","to","be","non-negative","."]
code: def __call__(self, module):
      w = module.weight.data
      module.weight.data = w.gt(0).float().mul(w)
  
imports: from fnmatch import fnmatch
  import torch
  from .callbacks import Callback
label_desc: Use image node_id 2 for calling the NonNeg obj's underlying member method code with example usage: obj.__call__(module) without return types