インポートAS tensorflowのTF X = tf.constant([1,2]、[3,4 ]) Y = tf.constant([1]、[1]) #の列ベクトル Z = tf.constant([ 1,1])#の行ベクトル U = X + Y V = X + Zの 印刷(U) プリント(V)
行列は、ベクトル加算をtensorflowできます
出力:
インポートAS tensorflowのTF X = tf.constant([1,2]、[3,4 ]) Y = tf.constant([1]、[1]) #の列ベクトル Z = tf.constant([ 1,1])#の行ベクトル U = X + Y V = X + Zの 印刷(U) プリント(V)
行列は、ベクトル加算をtensorflowできます
出力: