tf.title
不知道大家用沒用過CAD ,CAD中有一個方法叫陣列,tf.title 本意就是陣列
import tensorflow as tf a = tf.constant([[1,2,3],[4,5,6]], tf.int32) b = tf.constant([2,3], tf.int32) tf.tile(a, b) <tf.Tensor: shape=(4, 9), dtype=int32, numpy= array([[1, 2, 3, 1, 2, 3, 1, 2, 3],[4, 5, 6, 4, 5, 6, 4, 5, 6],[1, 2, 3, 1, 2, 3, 1, 2, 3],[4, 5, 6, 4, 5, 6, 4, 5, 6]], dtype=int32)>總結
- 上一篇: 解决Ubuntu spyder 无法输入
- 下一篇: tensorflow reshape,