首页> 开发问题 >其它问题 其它问题
tf.matmul()报错expected scalar type Float but found Double
作者:小萝卜 2019-12-03 【 其它 】 浏览 2362
简介tf.matmul()报错expected scalar type Float but found Double
tf.matmul(a,b)将矩阵a乘以矩阵b,生成a * b,这里的a,b要有相同的数据类型,否则会因为数据类型不匹配而出错。
如果出错,请看是前后分别是什么类型的,然后把数据类型进行转换。
很赞哦! (0)
相关文章
- pycharm无法识别自己的文件夹的程序
- 报错:configure: error: no acceptable C compiler found in $PATH
- Attempt to invoke interface method 'boolean java.util.List.add(java.lang.Object)' on a null object reference
- Mapreduce报错:java.lang.ClassNotFoundException: Class Mapper not found
- 创建Maven项目时提示web.xml is missing and <failOnMissingWebXml> is set to true错误解决方案
- 解决:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile
- matlab命令行双箭头消失
- 报错:maven:java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets
- bash: hadoop:command not found
- 异常解决:util.NativeCodeLoader: Unable to load native-hadoop library for your platform
