def __init__(self, shape, dtype=tf.float32, name=None):
"""Creates a placeholder for a batch of tensors of a given shape and dtype
Parameters
----------
shape: [int]
shape of a single elemenet of the batch
dtype: tf.dtype
number representation used for tensor contents
name: str
name of the underlying placeholder
"""
print "C1"
super(BatchInput, self).__init__(tf.placeholder(dtype, [None] + list(shape), name=name))
评论列表
文章目录