Tensorflow之合并tensor
2024-08-27 18:05:21
https://www.tensorflow.org/versions/r0.12/api_docs/python/array_ops.html#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]
最新文章
- windows 7下qtcreator里QWT文件的pro配置
- 已解决:Ubuntu php gettext 无效
- 论坛类应用双Tableview翻页效果实现
- vim对erlang语法支持
- 利用QT制作我们自己的一个计算器
- codeforces Codeforces 650A Watchmen
- WinXP 无线提示“区域中找不到无线网络”的一种可能原因!
- BNUOJ flower (搜索)
- MVC 发布到 windows2003遇到 'System.Web.WebPages.Razor 错误提示
- 学生问的一道javascript面试题[来自腾讯]
- exit()与_exit()的区别(转)
- idea找不到package下的mapper.xml文件
- C++ 日期时间使用
- 5、CentOS 6.5系统安装配置Nginx-1.2.7+PHP-5.3.22环境
- 学习笔记之The Intelligent Investor, Rev. Ed
- Docker中Spring boot+VueJS+MongoDB的前后端分离哲学摔跤
- C语言 · 和最大子序列
- vue-cli3.0配置接口代理
- 8-2 Building for UN Uva1605
- 【知了堂学习笔记】java 编写几种常见排序算法3
热门文章
- SVN:This client is too old to work with working copy…解决方法
- win64 QT(VS2013) 配置 CGAL+libQGLViewer
- Android自己定义之流式布局
- Latex插入项目列表符号
- ubuntu安装Skype 4.3
- LNMP架构二
- python-嵌套循环(Nested loop)-久久乘法表
- MySQL怎样存储IP地址
- HDU 5303 Delicious Apples(思维题)
- Application Architecture Determines Application Performance