【发布时间】:2023-03-28 02:30:02
【问题描述】:
通过这种方式可以读取密集数据:
# tf - tensorflow, np - numpy, sess - session
m = np.ones((2, 3))
placeholder = tf.placeholder(tf.int32, shape=m.shape)
sess.run(placeholder, feed_dict={placeholder: m})
如何将 scipy 稀疏矩阵(例如 scipy.sparse.csr_matrix)读入 tf.placeholder 或 tf.sparse_placeholder?
【问题讨论】:
标签: tensorflow scipy