code: def const_variable(name, shape, value, trainable):
          
          return tf.get_variable(name, shape, initializer=tf.constant_initializer(value), trainable=trainable)
docs: :param name: string
          :param shape: 1D array
          :param value: float
          :return: tf variable