TypeError: Value passed to parameter 'a' has DataType int64 not in list of allowed values: float16,

这是我在做多元线性回归时遇到的错误:这个也是数据类型类的错误;

解决办法就是把数据的类型转化之后就行的了,于‘TypeError: Input 'b' of 'MatMul' Op has type int64 that does not match type float32 of argument 'a'. ’这个错误类似;

详情参考这个博文:https://mp.csdn.net/postedit/80778525

原文地址:https://www.cnblogs.com/bluesl/p/9215762.html