tensorflow_backend.py 文件源码

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

项目:keras-rcnn 作者: broadinstitute 项目源码 文件源码
def unique(x, return_index=False):
    """
    Find the unique elements of an array.

    Returns the sorted unique elements of an array. There are three optional
    outputs in addition to the unique elements: the indices of the input array
    that give the unique values, the indices of the unique array that
    reconstruct the input array, and the number of times each unique value
    comes up in the input array.
    """
    y, indices = tensorflow.unique(x)

    if return_index:
        return y, indices
    else:
        return y
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号