正文tf.matmul()报错expected scalar type Float but found DoubleIP云V管理员/2022-08-31/1 阅读 08/31小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序 tf.matmul(a,b)将矩阵a乘以矩阵b,生成a * b,这里的a,b要有相同的数据类型,否则会因为数据类型不匹配而出错。如果出错,请看是前后分别是什么类型的,然后把数据类型进行转换。