tf.matmul()报错expected scalar type Float but found Double

tf.matmul (a, b) a matrix is ​​multiplied by matrix B, generates a * b, where a, b have the same data type, or because the data type mismatch error.

If an error occurs, see the front and rear respectively, what type, and the data type conversion.

Guess you like

Origin www.cnblogs.com/xym4869/p/11294268.html