import tensorflow as tf import numpy as np # const = tf.constant(2.0, name='const') # b = tf.placeholder(tf.float32, [None, 1], name='b') # # b = tf.Variable(2.0, dtype=tf.float32, name='b') # c = tf.Variable(1.0, dtype=tf.float32, name='c') # # d =…