tf.concat与numpy.concatenate
来源:互联网 发布:linux运维面试会问什么 编辑:程序博客网 时间:2024/06/03 20:26
tf.concat
t1 = [[1, 2, 3], [4, 5, 6]]t2 = [[7, 8, 9], [10, 11, 12]]tf.concat(0, [t1, t2]) ==> [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]]tf.concat(1, [t1, t2]) ==> [[1, 2, 3, 7, 8, 9], [4, 5, 6, 10, 11, 12]]# tensor t3 with shape [2, 3]# tensor t4 with shape [2, 3]tf.shape(tf.concat(0, [t3, t4])) ==> [4, 3]tf.shape(tf.concat(1, [t3, t4])) ==> [2, 6]
numpy.concatenate
a = np.array([[1, 2], [3, 4]])b = np.array([[5, 6]])np.concatenate((a, b), axis=0)array([[1, 2], [3, 4], [5, 6]])np.concatenate((a, b.T), axis=1)array([[1, 2, 5], [3, 4, 6]])
0 0
- tf.concat与numpy.concatenate
- tf.concat
- tf.concat
- tf.concat()
- numpy.concatenate 数组拼接
- numpy array append or concatenate
- tensorflow tf.concat操作
- tf.concat的用法
- tf.concat的用法
- 【TensorFlow】tf.concat
- tf.concat的用法
- tf.concat说明
- 【Tensorflow】tf.concat函数
- tensorflow API: tf.concat
- 【TensorFlow】tf.concat的用法
- tensorflow错误记录:tf.concat
- tensorflow错误记录:tf.concat
- tensorflow 中tf.concat()用法
- jQuery的淡入淡出效果
- POJ 3180 The Cow Prom
- 还是A+B
- mysql常见安全加固策略
- 洛谷P1443 马的遍历
- tf.concat与numpy.concatenate
- 在慕课上学习的,HTML和CSS基础学习笔记1
- 生成对抗网络
- 算法题(1)
- 数据结构与算法分析笔记与总结(java实现)--链表15:链表回文判断问题
- spark parquet 从hdfs 上读 和写
- Linux C笔记(1)
- 记录csdn第一篇博客
- 在DOS下引用jar包