core.py 文件源码

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

项目:gmn 作者: sbos 项目源码 文件源码
def flatten(output):
        sh = tf.unpack(tf.shape(output))
        batch, output_shape = sh[0], sh[1:]
        flat_shape = 1
        for d in output_shape:
            flat_shape *= d

        return tf.reshape(output, tf.pack([batch, flat_shape]))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号