TrainingExtensions/torch/src/python/aimet_torch/meta/connectedgraph.py
def _create_and_add_param_product_if_not_exists(self, op: Op, product_name: str, shape: List[int]):
        """
        Given a name of a product, create it if it doesn't exist, and attach it to the specified op as a parameter.
        :param op: Op to connect the parameter product to.
        :param product_name: Name of the product to create.
        :param shape: Shape of the product to create.
        """
        if product_name not in self._products.keys():
            product = Product(product_name, shape)
            product.is_parm = True
            product.add_consumer(op)
            op.add_input(product)
            self._products[product_name] = product

        Given a name of a product, create it if it doesn't exist, and attach it to the specified op as a parameter.
        :param op: Op to connect the parameter product to.
        :param product_name: Name of the product to create.
        :param shape: Shape of the product to create.
        
Given a name of a product, create it if it doesn't exist, and attach it to the specified op as a parameter.
Given a name of a product create it if it doesn ' t exist and attach it to the specified op as a parameter .
def _create_and_add_param_product_if_not_exists(self, op: Op, product_name: str, shape: List[int]):
        if product_name not in self._products.keys():
            product = Product(product_name, shape)
            product.is_parm = True
            product.add_consumer(op)
            op.add_input(product)
            self._products[product_name] = product
def _create_and_add_param_product_if_not_exists ( self , op : Op , product_name : str , shape : List [ int ] ) : if product_name not in self . _products . keys ( ) : product = Product ( product_name , shape ) product . is_parm = True product . add_consumer ( op ) op . add_input ( product ) self . _products [ product_name ] = product
Given a name of a product, create it if it doesn't exist, and attach it to the specified op as a parameter.
Given a name of a product create it if it doesn ' t exist and attach it to the specified op as a parameter .
"""
        Given a name of a product, create it if it doesn't exist, and attach it to the specified op as a parameter.
        :param op: Op to connect the parameter product to.
        :param product_name: Name of the product to create.
        :param shape: Shape of the product to create.
        """
self
op
Op
Op to connect the parameter product to.
Op to connect the parameter product to .
product_name
str
Name of the product to create.
Name of the product to create .
shape
List[int]
Shape of the product to create.
Shape of the product to create .