hourglass_tiny.py 文件源码

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

项目:hourglasstensorlfow 作者: wbenbihi 项目源码 文件源码
def _argmax(self, tensor):
        """ ArgMax
        Args:
            tensor  : 2D - Tensor (Height x Width : 64x64 )
        Returns:
            arg     : Tuple of max position
        """
        resh = tf.reshape(tensor, [-1])
        argmax = tf.arg_max(resh, 0)
        return (argmax // tensor.get_shape().as_list()[0], argmax % tensor.get_shape().as_list()[0])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号