tf_util.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:distributional_perspective_on_RL 作者: Kiwoo 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号