1:预设placeholder:
self.xxx = tf.placeholder(dtype=tf.float32, shape=[xxx, xxx], name='xxx')
2:喂numpy.ndarray
格式的矩阵进去:
xxx = sess.run(self.xxx, feed_dict={self.xxx: xx_array})
1:预设placeholder:
self.xxx = tf.placeholder(dtype=tf.float32, name='xxx')
2:喂任意变量进去:
xxx = sess.run(self.xxx, feed_dict={self.xxx: xx_variable})