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)>
posted @ 2022-08-19 22:51  luoganttcc  阅读(9)  评论(0)    收藏  举报