TypeError: Input ‘b’ of ‘MatMul’ Op has type float32 that does not match type float64 of argument 'a
在使用tf.matmul()时提示两个参量一个为float32型,另外一个为float64型
解决方法:转换成同类型。
tf.cast(inputs,tf.float32)#转换成float32
TypeError: Input ‘b’ of ‘MatMul’ Op has type float32 that does not match type float64 of argument 'a
在使用tf.matmul()时提示两个参量一个为float32型,另外一个为float64型
解决方法:转换成同类型。
tf.cast(inputs,tf.float32)#转换成float32