© 1999-2048 dssz.net 粤ICP备11031372号
[其它] TensorFlow 合并/连接数组的方法
说明:如下所示: import tensorflow as tf a = tf.Variable([4,5,6]) b = tf.Variable([1,2,3]) c = tf.concat(0,[a,b]) init_op = tf.initialize_all_variables() with tf.Session() as sess: sess.run(init_op) print(sess.run(c)) 结果打印: [4 5 6 1 2 3] 以上这篇TensorFlow 合并/连<weixin_38616359> 上传 | 大小:26kb