首页> 开发问题 >其它问题 其它问题
tf.matmul()报错expected scalar type Float but found Double
作者:小萝卜 2019-12-03 【 其它 】 浏览 2508
简介tf.matmul()报错expected scalar type Float but found Double
tf.matmul(a,b)将矩阵a乘以矩阵b,生成a * b,这里的a,b要有相同的数据类型,否则会因为数据类型不匹配而出错。
如果出错,请看是前后分别是什么类型的,然后把数据类型进行转换。
很赞哦! (0)
相关文章
- bash: hadoop:command not found
- Java compiler level does not match the version of the installed Java project facet
- windows10 onenote 显示英文 怎么办?
- pycharm无法识别自己的文件夹的程序
- ImportError: cannot import name 'BaseDataset' from 'src.dataset'
- Python“Non-ASCII character 'xe5' in file”报错问题
- VMWARE虚拟机安装64位系统此主机支持IntelVTx 但IntelVTx处于禁用状态
- git中报unable to auto-detect email address
- 无法定位程序输入点到xxx.dll
- scp 文件 : /目录: Permission denied
