human
I am working on the file "Fundamentals_of_deep-learning/notebooks/03_Introduction_to_tensorflow.ipynb".
The first task is:
Part 04 -- Object Oriented Programming Using Tensorflow
Object oriented example of tensorflow addition and multiplication:
Can you write Python code for it?
 ... What is a the Python code you requested?
assistant
#Here is the Python code you requested.

import tensorflow as tf
class tf_basic_ops:  
  def __init__(self, a = None, b = None):    
    self.a = a
    self.b = b    
    a = tf.placeholder(tf.int16)
    b = tf.placeholder(tf.int16)    
    self.input_dict = {a: self.a, b: self.b}  
  def tf_add(self):
    add = tf.add(self.a, self.b)
    with tf.Session() as sess:
      return sess.run(add, feed_dict=self.input_dict)
  def tf_mul(self):
    mul = tf.multiply(self.a , self.b)
    with tf.Session() as sess:
      return sess.run(mul, feed_dict=self.input_dict)
  def tf_mat_mul(self):
    mat_mul = tf.matmul(self.a , self.b)
    with tf.Session() as sess:
      return sess.run(mat_mul, feed_dict=self.input_dict)

tf_ops = tf_basic_ops(a=2, b = 3)

tf_ops.tf_add()

tf_ops.tf_mul()

tf_matrix_ops = tf_basic_ops(a=[[3., 3.]], b = [[2.],[2.]])

tf_matrix_ops.tf_mat_mul()