例子:稀疏张量SparseTensor(indices=[[0, 0], [1, 2]], values=[1, 2], dense_shape=[3, 4])代表密集张量:[[1, 0, 0, 0]...shape得到表示稠密张量形状的张量形状。返回值:一个TensorShape对象。value表示的稠密张量中的非零值。返回值:任意数据类型的一维张量。...5、__truediv____truediv__( sp_x, y)'sp_t / dense_t'的内部帮助函数。....): 乘以稀疏张量(秩2)A由稠密矩阵B表示。split(...): 沿着轴将稀疏张量分解为num_split张量。to_dense(...): 将稀疏张量转换为稠密张量。....): 将ids的稀疏张量转换为稠密的bool指示张量。transpose(...): 转置一个SparseTensor。