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)>

浙公网安备 33010602011771号