当前位置:网站首页>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
边栏推荐
- Customize the navigation bar at the top of wechat applet (adaptive wechat capsule button, flex layout)
- Spark FAQ sorting - must see before interview
- leetcode005--原地删除数组中的重复元素
- View analysis of scenic spots in ArcGIS
- Unity camera rotation with sliding effect (rotation)
- Innovation training (V) configuration information
- La caméra Unity tourne avec la souris
- 做数据可视化应该避免的8个误区
- Flink's important basics
- Leetcode002 -- inverts the numeric portion of a signed integer
猜你喜欢

Record the ThreadPoolExecutor main thread waiting for sub threads

Repair of self calibration SPC failure of Tektronix oscilloscope dpo3054

Customize the navigation bar at the top of wechat applet (adaptive wechat capsule button, flex layout)

POI export message list (including pictures)

IDE idea automatic compilation and configuration of on update action and on frame deactivation

Summary of MySQL de duplication methods

Practice and exploration of knowledge map visualization technology in meituan

Excel uses the functions of replacement, sorting and filling to comprehensively sort out financial data

C language: spoof games

redis数据类型有哪些
随机推荐
Go reflection - go language Bible learning notes
L2-011 玩转二叉树(建树+BFS)
Innovation training (VI) routing
unity摄像机旋转带有滑动效果(自转)
/etc/bash_ completion. D directory function (the user logs in and executes the script under the directory immediately)
Leetcode005 -- delete duplicate elements in the array in place
Eight misunderstandings that should be avoided in data visualization
Migrate from MySQL database to AWS dynamodb
List remove an element
Customize the navigation bar at the top of wechat applet (adaptive wechat capsule button, flex layout)
Spark optimization
Perfect test of coil in wireless charging system with LCR meter
QML进阶(四)-绘制自定义控件
Logger and zap log Library in go language
Innovation training (V) configuration information
Innovation training (XII) reptile
简单的拖拽物体到物品栏
Painless upgrade of pixel series
Unity RawImage背景无缝连接移动
No such file or directory problem while executing shell