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)>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章