首页> 开发问题 >其它问题 其它问题
tf.matmul()报错expected scalar type Float but found Double
作者:小萝卜 2019-12-03 【 其它 】 浏览 2606
简介tf.matmul()报错expected scalar type Float but found Double
tf.matmul(a,b)将矩阵a乘以矩阵b,生成a * b,这里的a,b要有相同的数据类型,否则会因为数据类型不匹配而出错。
如果出错,请看是前后分别是什么类型的,然后把数据类型进行转换。
很赞哦! (0)
相关文章
- 异常解决:util.NativeCodeLoader: Unable to load native-hadoop library for your platform
- Python问题:SyntaxError: Non-ASCII character '\xe2' in file
- idea maven 报-source 1.5 中不支持 diamond 运算符
- Java compiler level does not match the version of the installed Java project facet
- 报错:configure: error: no acceptable C compiler found in $PATH
- MATLAB关闭科学计数法显示
- VMWARE虚拟机安装64位系统此主机支持IntelVTx 但IntelVTx处于禁用状态
- clion ctrl+鼠标左键不能调到函数实现
- Unreachable statement
- 关于windows10上的sourcetree突然打不开的问题的解决策略
