keras_utils.py 文件源码

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

项目:mimic3-benchmarks 作者: YerevaNN 项目源码 文件源码
def call(self, x, mask=None):
        if K.backend() == 'tensorflow':
            xt = tf.transpose(x, perm=(2, 0 ,1))
            gt = tf.gather(xt, self.indices)
            return tf.transpose(gt, perm=(1, 2, 0))
        return x[:, :, self.indices]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号