TrainingExtensions/tensorflow/src/python/aimet_tensorflow/common/connectedgraph.py
def _create_op_if_not_exists(self, current_op_info: ModuleIdentifierOpInfo):
        """ Create new op if it does not yet exist """

        if current_op_info.module_name not in self._ops:
            op = Op(name=current_op_info.module_name,
                    dotted_name=current_op_info.module_name,
                    output_shape=None,
                    is_anonymous=False,
                    op_type=current_op_info.op_type,
                    pattern_type=current_op_info.pattern_type,
                    internal_ops=current_op_info.internal_ops)
            fill_op_info(op, current_op_info)
            self._ops[current_op_info.module_name] = op
            logger.debug("Created new op: %s ", current_op_info.module_name)
        else:
            logger.debug("Op %s already exists", current_op_info.module_name)
 Create new op if it does not yet exist 
Create new op if it does not yet exist
Create new op if it does not yet exist
def _create_op_if_not_exists(self, current_op_info: ModuleIdentifierOpInfo):
        if current_op_info.module_name not in self._ops:
            op = Op(name=current_op_info.module_name,
                    dotted_name=current_op_info.module_name,
                    output_shape=None,
                    is_anonymous=False,
                    op_type=current_op_info.op_type,
                    pattern_type=current_op_info.pattern_type,
                    internal_ops=current_op_info.internal_ops)
            fill_op_info(op, current_op_info)
            self._ops[current_op_info.module_name] = op
            logger.debug("Created new op: %s ", current_op_info.module_name)
        else:
            logger.debug("Op %s already exists", current_op_info.module_name)
def _create_op_if_not_exists ( self , current_op_info : ModuleIdentifierOpInfo ) : if current_op_info . module_name not in self . _ops : op = Op ( name = current_op_info . module_name , dotted_name = current_op_info . module_name , output_shape = None , is_anonymous = False , op_type = current_op_info . op_type , pattern_type = current_op_info . pattern_type , internal_ops = current_op_info . internal_ops ) fill_op_info ( op , current_op_info ) self . _ops [ current_op_info . module_name ] = op logger . debug ( "Created new op: %s " , current_op_info . module_name ) else : logger . debug ( "Op %s already exists" , current_op_info . module_name )
Create new op if it does not yet exist
Create new op if it does not yet exist
""" Create new op if it does not yet exist """
self
current_op_info
ModuleIdentifierOpInfo