values:任何类型和dense_shape [N]的一维张量,它提供了indices中的每个元素的值。...例如,给定indices=[[1,3], [2,4]]的参数values=[18, 3.6]指定稀疏张量的元素[1,3]的值为18,张量的元素[2,4]的值为3.6。...例如:稀疏张量表示:SparseTensor(indices=[[0, 0], [1, 2]], values=[1, 2], dense_shape=[3, 4])表示稠密张量:[[1, 0, 0,...0] [0, 0, 2, 0] [0, 0, 0, 0]]属性dense_shape int64的一维张量,表示稠密张量的形状.dtype 在这个张量中元素的DType.graph 包含 index,value...参数:indices:一个形状为[N, ndims]的二维int64张量。values:任何类型和形状[N]的一维张量。dense_shape:形状为[ndims]的1-D int64张量。