class_docstr: A dynamically updated flow.
  
  This flow will get the list of optimizers by calling optimizer_func. Useful to represent a view of all available
  optimizers of a certain type.
class_docstr_tok: ["A","dynamically","updated","flow",".","This","flow","will","get","the","list","of","optimizers","by","calling","optimizer_func",".","Useful","to","represent","a","view","of","all","available","optimizers","of","a","certain","type","."]
docstr: Creates a new dynamic flow.
  
  Args:
      name (str): Unique name of the flow.
      optimizer_func (callable): Function to call (without arguments) to get the list of optimizers.
      requires (_type_, optional): List (str) of flows which have to be applied before this flow. Defaults to None.
docstr_tok: ["Creates","a","new","dynamic","flow",".","Args",":","name","(","str",")",":","Unique","name","of","the","flow",".","optimizer_func","(","callable",")",":","Function","to","call","(","without","arguments",")","to","get","the","list","of","optimizers",".","requires","(","_type_",",","optional",")",":","List","(","str",")","of","flows","which","have","to","be","applied","before","this","flow",".","Defaults","to","None","."]
code: def __init__(self, name, optimizer_func, requires=None):
      """Creates a new dynamic flow.
  
      Args:
          name (str): Unique name of the flow.
          optimizer_func (callable): Function to call (without arguments) to get the list of optimizers.
          requires (_type_, optional): List (str) of flows which have to be applied before this flow. Defaults to None.
      """
      self.name = name
      self._optimizer_func = optimizer_func
      self._added_optimizers = set()
      self._removed_optimizers = set()
      if requires is None:
          self.requires = []
      else:
          self.requires = requires
  
file_path: hls4ml/hls4ml/model/flow/flow.py
label_desc: Use image node_id 1 to create a new DynamicFlow object from inherited base classes: Flow with example: obj = DynamicFlow(name, optimizer_func, requires)