tools/utilities/pythonlibs/audio/training/model_editor.py
def attach_sink(self, nameExpr, functionName):
        """
        Process the given ELL model and insert SinkNode to monitor output of the given node
        """
        iter = self.model.GetNodes()
        changed = False
        found = False
        while iter.IsValid():
            node = iter.Get()
            if nameExpr in node.GetRuntimeTypeName():
                found = True
                changed |= self.add_sink_node(node, functionName)
                break
            iter.Next() 
        if not found:
            print("model does not contain any nodes matching expression: {}".format(nameExpr))        
        return changed

        Process the given ELL model and insert SinkNode to monitor output of the given node
        
Process the given ELL model and insert SinkNode to monitor output of the given node
Process the given ELL model and insert SinkNode to monitor output of the given node
def attach_sink(self, nameExpr, functionName):
        iter = self.model.GetNodes()
        changed = False
        found = False
        while iter.IsValid():
            node = iter.Get()
            if nameExpr in node.GetRuntimeTypeName():
                found = True
                changed |= self.add_sink_node(node, functionName)
                break
            iter.Next() 
        if not found:
            print("model does not contain any nodes matching expression: {}".format(nameExpr))        
        return changed
def attach_sink ( self , nameExpr , functionName ) : iter = self . model . GetNodes ( ) changed = False found = False while iter . IsValid ( ) : node = iter . Get ( ) if nameExpr in node . GetRuntimeTypeName ( ) : found = True changed |= self . add_sink_node ( node , functionName ) break iter . Next ( ) if not found : print ( "model does not contain any nodes matching expression: {}" . format ( nameExpr ) ) return changed
Process the given ELL model and insert SinkNode to monitor output of the given node
Process the given ELL model and insert SinkNode to monitor output of the given node
"""
        Process the given ELL model and insert SinkNode to monitor output of the given node
        """
self
nameExpr
functionName