python - Tensorflow 和 python numpy:如何将张量/列表与特定索引连接起来
问题描述
我是Tensorflow 的作者:how to concat tensor with specific index
今天我想连接这两个列表
tensor_a = [[[[255,255,255]]], [[[100,100,100]]]]
tensor_b = [[[[0.1,0.2]]], [[[0.3,0.4]]]]
变成这样的格式
tensor_d = [[[[[255,255,255],[0.1,0.2]]]], [[[[100,100,100], [0.3,0.4]]]]]
我需要做这个转换:
使用 tensorflow(所以 tensor_a 和 tensor_b 是张量)
使用 list/numpy (所以 tensor_a 和 tensor_b 是列表)
我能怎么做?
解决方案
推荐阅读
- angular - 无法将文件输入到 FileList angular4
- multithreading - Android Studio - AlertDialog 按钮监听器和 ProgressBar 视图
- python-3.x - tkinter 只显示标签文本的顶部
- laravel - Laravel 5.6 签名的 url 在 APP_ENV=production 中不起作用
- json - d3.json() 加载大文件
- java - SpringBoot Ant Matchers 终止于 DefaultSecurityFilterChain [创建过滤器链]
- node.js - 使用 vuejs 时无法在 IE 11 中运行 js 文件
- .net - 使用列表中的任何函数验证输入
- python - 不知道在里面放什么试试……除了……处理不存在的字符串
- c# - Visual Studio 2017 构建包 CLI