dnn.py 文件源码

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

项目:tfdnn-kaldi 作者: dreaming-dog 项目源码 文件源码
def buildEvalGraph(self):
        with tf.variable_scope('eval_variables', reuse=False):
            self.logits = tf.nn.softmax(self.layers[-1].activations, name='logits')
            self.correct_predication = tf.equal(tf.arg_max(self.logits, 1), tf.arg_max(self.output, 1))
            self.accuracy = tf.reduce_mean(tf.cast(self.correct_predication, tf.float32))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号