vae.py 文件源码

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

项目:vampyre 作者: GAMPTeam 项目源码 文件源码
def build_graph(self):
        """
        Builds graph
        """

        # Clear the grapht
        tf.reset_default_graph()

        # Create the placeholder for the input
        nx = self.enc_dim[0]
        self.x = tf.placeholder("float", shape=[None, nx], name='x')


        # Builds the various components        
        if self.mode == 'train':
            self.build_enc()
        self.build_dec()
        self.build_loss_fn()

        # Add the summary op
        self.summary_op = tf.summary.merge_all()

        # Create a saver
        self.saver = tf.train.Saver()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号