TrainingExtensions/tensorflow/src/python/aimet_tensorflow/common/connectedgraph.py
def create_and_connect_product(param_name: str, product_shape: tf.TensorShape, my_op: Op,
                                       param_tensor: tf.Tensor):
            """ Create product with given name, shape, and corresponding tensor.  Connect product to my_op. """

            product = Product(my_op.name + '/' + param_name, product_shape)
            product.is_parm = True
            product.add_consumer(my_op)
            product.tensor_dict[my_op] = param_tensor
            my_op.add_input(product)
            products_dict[product.name] = product
            my_op.add_param(param_name, product)
            self._num_products_made += 1
 Create product with given name, shape, and corresponding tensor.  Connect product to my_op. 
Create product with given name, shape, and corresponding tensor.  Connect product to my_op.
Create product with given name shape and corresponding tensor . Connect product to my_op .
def create_and_connect_product(param_name: str, product_shape: tf.TensorShape, my_op: Op,
                                       param_tensor: tf.Tensor):
            product = Product(my_op.name + '/' + param_name, product_shape)
            product.is_parm = True
            product.add_consumer(my_op)
            product.tensor_dict[my_op] = param_tensor
            my_op.add_input(product)
            products_dict[product.name] = product
            my_op.add_param(param_name, product)
            self._num_products_made += 1
def create_and_connect_product ( param_name : str , product_shape : tf . TensorShape , my_op : Op , param_tensor : tf . Tensor ) : product = Product ( my_op . name + '/' + param_name , product_shape ) product . is_parm = True product . add_consumer ( my_op ) product . tensor_dict [ my_op ] = param_tensor my_op . add_input ( product ) products_dict [ product . name ] = product my_op . add_param ( param_name , product ) self . _num_products_made += 1
Create product with given name, shape, and corresponding tensor.
Create product with given name shape and corresponding tensor .
""" Create product with given name, shape, and corresponding tensor.  Connect product to my_op. """
param_name
str
product_shape
tf.TensorShape
my_op
Op
param_tensor
tf.Tensor