• 报错:tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 76800 values, but the requested shape has 768
print("auxiliary_tensor:",auxiliary_tensor)    # Tensor("AuxLogits/SpatialSqueeze:0", shape=(1, 768), dtype=float32)
print("----------------------------------------------")
print("train_auxiliarys-shape:",np.shape(train_auxiliarys))      # (10, 768)
print("train_ground_truth-shape:",np.shape(train_ground_truth))  # (10, 5)
print("auxiliary_input:",auxiliary_input)   # Tensor("input/AuxiliaryInputPlaceholder:0", shape=(?, 768), dtype=float32)
print("ground_truth_input:",ground_truth_input) # Tensor("input/GroundTruthInput:0", shape=(?, 5), dtype=float32)
print("type train_auxiliarys:",type(train_auxiliarys))   # type train_auxiliarys: <class 'list'>
print("type train_ground_truth:",type(train_ground_truth))   # type train_ground_truth: <class 'list'>
print("----------------------------------------------")train_summary, _ = sess.run([merged, train_step],feed_dict={auxiliary_input: train_auxiliarys,ground_truth_input: train_ground_truth})

这个问题,我前后折腾了很久,还是没能解决…抱歉…

报错:tensorflow.InvalidArgumentError: Input reshape is 7680 values, but the requested shape has 768相关推荐

  1. 【tensorflow】Input to reshape is a tensor with xxx values, but the requested shape requires a multipl

    今天写了一个简单的3DCNN,结果在跑的时候出现一个问题, tensorflow.python.framework.errors.InvalidArgumentError: Input to resh ...

  2. Pycharm 转化ui文件为py文件:报错Error in input file: not well-formed (invalid token): line 1, column 1

    利用PyUIC转化 .ui文件为 .py文件时,报错 Error in input file: not well-formed (invalid token): line 1, column 1 我出 ...

  3. 使用fswebcam报错Error selecting input 0 VIDIOC_S_INPUT: Device or resource busy或者使用metion监控,画面为灰色

    一,BUG解决 不知道大家使用树莓派的时候,有没有遇到过使用fswebcam报错Error selecting input 0 VIDIOC_S_INPUT: Device or resource b ...

  4. 选择日期保存报错Invalid JSON input: Cannot deserialize value of type `java.util.Date` from String......

    (spring boot + vue) 1.新增-选择日期-点击保存-报错:报错信息 "Invalid JSON input: Cannot deserialize value of typ ...

  5. 2021.04.13丨sRNAnalyzer报错fastx_collapser: Invalid input: This looks like a multi-line FASTA file解决办法

    解决方法已更新:2021.06.19丨sRNAnalyzer报错fastx_collapser补充解决办法_穆易青的博客-CSDN博客 摘要 接到一个外泌体的miRNA分析,正常来说,本来可以直接使用 ...

  6. java报错:for input string(问题暂时还没解决,有兴趣的可以看一下我这个情况。欢迎点评!)

    写在开头的第二次编辑 问题虽然不知道怎么回事,但是这个方法还是有着不行.先不说转化成String类型的时间能不能转化成整型,就这个时间格式下的数字就已经 超出 Integer或者Int的界限.还是不要 ...

  7. kubectl报错error validating data: the server could not find the requested resource

    使用跳板机执行kubectl 命令报错 kubectl --kubeconfig /root/.kube/config --context kubernetes-admin@kubernetes ap ...

  8. python3 报错 [Errno 5] Input/output error 没有stdout时使用了print

    过程描述 刚不久用 Tornado 写了一个项目,本打算部署在 Nginx 上,但是因为公司的一些原因就没有使用 Nginx,直接在命令行中启动 当我从命令行以后台的方式启动以后,是可以正常访问的 p ...

  9. 报错:For input string

    今天开发时碰到的错误,For input string:XXX.XXX 原因是数据从数据库取出来的时候时00.00的样式而我通过Integer,valueOf的形式想把它转换成int类型, 然后报了这 ...

最新文章

  1. WMI Series :事件预订和处理
  2. 李飞飞重回斯坦福,Andrew Moore接手谷歌云AI
  3. 转: 浅析Fusion-IO和Intel SSD
  4. android美拍相机
  5. cell重用的几种方式
  6. 你能体会那种写 Python 时不用 import 的幸福吗?
  7. 经典面试题:Integer c=100,d=100,c==d 一定是false吗?
  8. 不会PS抠图?免抠(扣)PNG图片网就解决了
  9. 官网英文版学习——RabbitMQ学习笔记(二)RabbitMQ安装
  10. spring boot2 kafka
  11. Sql Server 行转列学习 根据学生表、课程表、学生成绩表统计每个学生的各科成绩和他的总成绩、平均成绩...
  12. 有关Silverlight3.0在浏览器外运行的问题
  13. mysql+vs检测不到_VS2017 + EF + MySQL 我使用过程中遇到的坑
  14. 详解窗口句柄,进程ID,进程句柄,窗口与进程之间的关系
  15. BZOJ5312 冒险 势能分析、线段树
  16. 谷歌浏览器和谷歌搜索_Google的搜索未来
  17. appium的滑动操作总结
  18. 完整版JavaWeb环境搭建-maven-servlet...与测试,欢迎大家一起学习
  19. 中文知识图谱CN-DBpedia构建的关键技术
  20. Hive中的left semi join和left anti join

热门文章

  1. Python学习-基础篇8 并发编程
  2. echarts堆叠柱状图中显示百分比,tooltip展示百分比和数量
  3. 抖音怎么才能发长视频?详谈抖音发长视频(60s)的要求
  4. 在2019年的Vue.js和ReactJS之间进行选择:什么最适合您的项目?
  5. 怎样防止苹果系统更新_苹果 iOS 13.6 Beta 2 新增系统自定义自动更新开关
  6. html怎么让爱心闪动,css画爱心并实现“爱心跳动”
  7. 喜欢有点幸福到忧伤的旋律
  8. PHP 实现微信支付 “请求单次分账”
  9. MySql语句按照特定字符截取
  10. 泰山OFFICE技术讲座:如何给文字添加着重号