【发布时间】:2017-12-04 20:47:33
【问题描述】:
如果 X = [[ 1. 1. 1. 1. 1. 1.]] 和 Y = [[ 0. 0. 0. 0.]] - 我如何连接这两个向量以形成一个向量沿列?
我做了以下但没有用:
import tensorflow as tf
X = tf.constant(1.0, shape=[1, 6])
Y = tf.zeros(shape=[1,4])
XY = tf.concat((X,Y), axis = 0)
sess = tf.Session()
print(sess.run(XY))
【问题讨论】:
-
你的意思是获取形状为
[1, 10]的向量吗?
标签: python tensorflow