【问题标题】:What is the sparse representation of a tensor张量的稀疏表示是什么
【发布时间】:2017-06-27 11:21:59
【问题描述】:

我从here 中查看了tf.sparse_to_dense 的定义。

在函数的描述中,声明为Converts a sparse representation into a dense tensor.

那么什么是稀疏表示?

张量是否以某种压缩格式表示,而不是多维数组?

【问题讨论】:

    标签: tensorflow


    【解决方案1】:

    TensorFlow 支持多维稀疏数据的 SparseTensor 表示。将此表示与 IndexedSlices 进行对比,IndexedSlices 可以有效地表示在其第一维度上稀疏而在所有其他维度上密集的张量。

    Sparse Tensor Representation

    【讨论】:

      【解决方案2】:

      我的假设是稀疏张量类似于稀疏数组或稀疏矩阵,其中大多数元素为零。参见稀疏数组/矩阵的定义:https://en.wikipedia.org/wiki/Sparse_matrix

      相反,密集张量与稀疏张量相反,其中大多数元素都是非零的

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-01-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-12-12
        • 2018-03-20
        • 2018-06-20
        相关资源
        最近更新 更多