layers.py 文件源码

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

项目:tensorflow-layer-library 作者: bioinf-jku 项目源码 文件源码
def get_plots_out(self, sample=0, frames=slice(0, None)):
        """Prepare to plot outputs for sample 'sample' with 'frames' frames"""
        plotsink = list()
        plot_dict = dict()
        plot_range_dict = dict()

        # Prepare output for plotting (plot_dict value is [tensor, [min, max]]
        plot_dict['{}_out'.format(self.name)] = tf.arg_max(self.out[sample, frames, :, :, :], 3)
        plot_range_dict['{}_out'.format(self.name)] = [0, self.n_units]
        plotsink.append(['{}_out'.format(self.name)])

        return plot_dict, plotsink, plot_range_dict
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号