当前位置:网站首页>Solve valueerror: argument must be a deny tensor: 0 - got shape [198602], but wanted [198602, 16]
Solve valueerror: argument must be a deny tensor: 0 - got shape [198602], but wanted [198602, 16]
2022-04-23 04:47:00 【Small high high don't bug】
stay Tensorflow Call in tf.data.Dataset.from_generator(generator_function,args=(values1,values2))(generator_function Is a custom generator function ,args Is the input parameter of the generator ) The times made this mistake , All night long , It is actually an error reported in this position :
stay tensor_util.py Inside make_tensor_proto() The following position of the function :
Which is in the picture nparray = np.array(values, dtype=np_dt), This values Is the input parameter of the generator values1,values2( How many parameters will judge how many times ,values=values1,values=values2), Above picture _GetDenseDimensions(values) The function is defined as follows :
It can be found through pre and post analysis , This args The parameters inside cannot be the list of the list , Can be a list , It can also be strings and so on , However, once the list contains the parameters of the list, an error will be reported .
版权声明
本文为[Small high high don't bug]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230442498594.html
边栏推荐
- Shanghai Hangxin technology sharing 𞓜 overview of safety characteristics of acm32 MCU
- Leetcode004 -- Roman numeral to integer
- Recommended scheme of national manufactured electronic components for intelligent electronic scales
- Mysql50 basic exercises
- QML进阶(四)-绘制自定义控件
- Solutions to the failure of sqoop connection to MySQL
- List< Map> Replication: light copy and deep copy
- Com alibaba. Common methods of fastjson
- leetcode002--将有符号整数的数字部分反转
- General enumeration constant class
猜你喜欢
Installation and use of Apache bench (AB pressure test tool)
520. Detect capital letters
Youqilin 22.04 lts version officially released | ukui 3.1 opens a new experience
简单的拖拽物体到物品栏
程序员抱怨:1万2的工资我真的活不下去了,网友:我3千咋说
redis数据类型有哪些
PIP3 installation requests Library - the most complete pit sorting
Mysql50 basic exercises
Summary of MySQL de duplication methods
Recommended scheme of national manufactured electronic components for intelligent electronic scales
随机推荐
使用model.load_state_dict()时,出现AttributeError: ‘str‘ object has no attribute ‘copy‘
Innovation training (IX) integration
List< Map> Replication: light copy and deep copy
Windows remote connection to redis
拼了!两所A级大学,六所B级大学,纷纷撤销软件工程硕士点!
Excel protects worksheets and workbooks from damage
QML advanced (IV) - drawing custom controls
L2-011 玩转二叉树(建树+BFS)
Recommended scheme for national production of electronic components of wireless keyboard
[paper reading] [3D object detection] voxel transformer for 3D object detection
Leetcode - > 1 sum of two numbers
Open the past and let's start over.
Spark optimization
Custom switch control
Innovative practice of short video content understanding and generation technology in meituan
Manually write smart pointer shared_ PTR function
Mysql50 basic exercises
Practice and exploration of knowledge map visualization technology in meituan
Innovation training (IV) preliminary preparation - server
What is the meaning of load balancing