【发布时间】:2018-09-25 21:40:46
【问题描述】:
在question的回答中提到:
tf_coo_matrix = tf.SparseTensorValue(
indices=np.array([coo_matrix.rows, coo_matrix.cols]).T,
values=coo_matrix.data,
dense_shape=coo_matrix.shape)
我试图理解为什么在使用 TensorFlow 时需要转置一个 scipy 稀疏矩阵。提前致谢。
【问题讨论】:
标签: python tensorflow