tensorflow ValueError: Dimensions must be equal
来源:互联网 发布:qq刷会员软件 编辑:程序博客网 时间:2024/04/30 19:47
在使用tf.matmul进行矩阵相乘的时候报了这么个错
。。。。 File "/home/batman/.local/lib/python3.5/site-packages/tensorflow/python/framework/common_shapes.py", line 610, in call_cpp_shape_fn debug_python_shape_fn, require_shape_fn) File "/home/batman/.local/lib/python3.5/site-packages/tensorflow/python/framework/common_shapes.py", line 676, in _call_cpp_shape_fn_impl raise ValueError(err.message)ValueError: Dimensions must be equal, but are 8 and 21 for 'MatMul' (op: 'MatMul') with input shapes: [21,8], [21,0].].
按道理来说21×8的矩阵乘以21行的列向量是可以乘的,乘完的结果的是21一行的列向量,最后发现tf.matmul函数只能进行矩阵间的乘法操作
阅读全文
1 0
- tensorflow ValueError: Dimensions must be equal
- ValueError: fill value must be in categories.
- ValueError: Masked arrays must be 1-D
- ValueError: all the input array dimensions except for the concatenation axis must match exactly
- ValueError: IV must be 16 bytes long问题的解决
- ValueError:Cannot assign:A must be a 'B' instance.
- Python Error1: ValueError: range parameter must be finite.
- python中关于Np.hstack()错误的ValueError: all the input arrays must have same number of dimensions
- python reshape()函数ValueError: total size of new array must be unchanged
- Keras VGG16中ValueError: filter must not be larger than the input问题的解决
- Faster R-CNN, ValueError, total size of new array must be unchanged
- python 报ValueError: Bin labels must be one fewer than the number of bin edges
- 机器学习实战第九章ValueError: Masked arrays must be 1-D
- Tensorflow 提示list indices must be integers, not Tensor ?
- 手把手教你 python读取文件报错:ValueError encoding must be one of 'utf_8', 'big5', or 'gbk'.
- ValueError: Shape must be rank 0 but is rank 1 for 'train_data/ReadFile' (op: 'ReadFile') with input
- jgoodies FormLayout 布局错误The row index 12 must be less than or equal to 10.
- Inner matrix dimensions must agree 解决方法
- AlphaGo已经拿下围棋,创投界的“Master”何时出现?
- javaMail 的使用,java代码发送一份邮件
- Kotlin入门____基础语法(一)
- Android 广播 动、静态注册广播(作为内部类使用)
- C#实现中英文混合字符串截取的方法
- tensorflow ValueError: Dimensions must be equal
- Maven| Maven相关概念
- 详解Shell脚本实现iOS自动化编译打包提交
- 移植全新的linux-3.5.0到Super4412(1)
- [easy]561. Array Partition I
- 操作系统基础
- Ubuntu使用教程:无法获得锁 /var/lib/apt/lists/lock
- ubuntu12.04-server设置静态IP
- spark数据导入、处理实例