TensorFlow: feed data
import tensorflow as tf import numpy as np a = 3 b = 2 x = tf.placeholder(tf.float32,shape=(a,b)) y = tf.add(x,x) data = np.random.rand(a,b) sess = tf.Session() print sess.run(y,feed_dict={x:data}) # Finally, close the TensorFlow session when you're done: sess.close() Pranal Menarik TensorFlow
| Penerbit | Taratsa |
|---|---|
| Tahun | 2019-07-29 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:ee02902c-71b8-59de-b443-d506d9b1ffcf |