Save the date! Google I/O returns May 18-20 Register now


View source on GitHub

Get placeholders of a graph.

For example:

a = tf.compat.v1.placeholder(dtype=tf.float32, shape=[2, 2], name='a')
a = tf.compat.v1.placeholder(dtype=tf.int32, shape=[3, 2], name='b')

# Returns:
#  [<tf.Tensor 'a:0' shape=(2, 2) dtype=float32>,
#   <tf.Tensor 'b:0' shape=(3, 2) dtype=int32>]

graph A tf.Graph.

A list contains all placeholders of given graph.

TypeError If graph is not a tensorflow graph.