class_docstr: Constrains the weights to be non-negative.
class_docstr_tok: ["Constrains","the","weights","to","be","non-negative","."]
code: def __init__(self, frequency=1, unit="batch", module_filter="*"):
      self.frequency = frequency
      self.unit = unit
      self.module_filter = module_filter
  
imports: from fnmatch import fnmatch
  import torch
  from .callbacks import Callback
label_desc: Use image node_id 1 to create a new NonNeg object from inherited base classes: Constraint with example: obj = NonNeg(frequency, unit, module_filter)