tf.compat.v1.placeholder(dtype, shape=None, name=None)
Inserts a placeholder for a tensor that will be always fed.
Args:
dtype:The type of elements in the tensor to be fed.
shape: The shape of the tensor to be fed (optional). If the shape is not specified, you can feed a tensor of any shape.
name:A name for the operation (optional).
Important: This tensor will produce an error if evaluated. Its value must be fed using the feed_dict optional argument to Session.run(), Tensor.eval(), or Operation.run().
For example:
x = tf