ValueError: List argument ‘indices‘ to ‘Sparse Concat‘ Op with length 0 shorter than minimum length2
错误ValueError: List argument ‘indices’ to ‘Sparse Concat’ Op with length 0 shorter than minimum length 2.
在实现github代码的时候,由于keras版本的原因把keras.backend.image_dim_ordering()更改为keras.backend.image_data_format(),‘th’和’tf’更改为’channels_first’和’channels_last’。之后程序运行时报错ValueError: List argument ‘indices’ to ‘Sparse Concat’ Op with length 0 shorter than minimum length 2.
经过查找发现,引用的另一个代码文件中的上述代码没有进行对应的更改,所以报错,把所有相关代码文件都改为现有版本keras的格式就可以消除这个错误。
ValueError: List argument ‘indices‘ to ‘Sparse Concat‘ Op with length 0 shorter than minimum length2相关推荐
- 成功解决TypeError: __init__() got an unexpected keyword argument 'indices'
成功解决TypeError: __init__() got an unexpected keyword argument 'indices' 目录 解决问题 解决思路 解决方法 解决问题 TypeEr ...
- pytorch转caffe2 之 onnx转caffe2报错的解决方法 ValueError: Don't know how to translate op Unsqueeze
目标:将 pytorch模型 转为 onnx模型 再转为 caffe2模型,得到两个.pb文件 pytorch转onnx可通过torch.onnx._export函数实现. onnx转caffe2有两 ...
- ValueError: You are trying to load a weight file containing 0 layers into a model with 16 layers.
ValueError: You are trying to load a weight file containing 0 layers into a model with 16 layers. 在使 ...
- ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0
ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0 问题再现 解决办 ...
- 成功解决ValueError: Invalid classes inferred from unique values of `y`. Expected: [0 1], got [‘0‘ ‘1‘]
成功解决ValueError: Invalid classes inferred from unique values of `y`. Expected: [0 1], got ['0' '1'] ...
- argument 'indices' must be tuple of Tensors, not Tensor
当我做loss backward的时候,遇到这个问题. 先是查到,这个问题可以通过autograd.variable解决,我将最后得到loss的中间变量加上之后觉得无法利用之前的信息 手写双线性插值也 ...
- ValueError: x and y arrays must be equal in length along interpolation axis.
解决方法 使数组变成一维 b = np.asarray(b).squeeze() b.shape (62,)
- docx4j 对比word
在java对比两份word文档(包括表格里面的数据,表格里的数据和段落里的数据需要分别处理,详情看后面代码),增加批注显示差异. 效果图如下 需引入docx4j jar ,版本可拿最新稳定版. mav ...
- 读取word、pdf某些位置的值
最近有个需求是要求读word或pdf形式合同里某些位置的值,但具体读什么位置,没有明确的定位.可自定义位置. 经思考过后,采取以下方式. 1.复制一份word/pdf. 2.把复制出来的word/pd ...
最新文章
- Dom对象、JavaScript对象、jQuery对象区别
- 玩Azkaban跳过的坑
- nodejs学习(一)--express+ejs生成项目
- 怎样完善和推广自己的理论模型?
- 详解 SGA 与实例优化(部分)
- Delphi 实现数字转大写
- Android 之 网络连接(Connecting to the Network)
- 用户服务协议和隐私政策
- Windows图片查看器不出现下一张和上一张按钮
- input输入身份证验证
- 一篇文章带你读懂水晶易表的简介及其安装初识
- python神经网络识别验证码_基于卷积神经网络实现验证码识别(一)
- Real-Time Video Super-Resolution with Spatio-Temporal Networks and Motion Compensation论文解析(视频超分)
- 金融科技争做“超级接口”,度小满有了“送水工”的样子
- 基于飞桨本地ocr安卓按键插件
- 弘辽科技:淘宝新商家怎么做起来?如何经营一个新店?
- Hadoop,MapReduce,HDFS面试题
- 下载工具:aria2c
- python学习之 re库 正则表达式
- C语言魔王语言解释(没那么复杂)