解决:TypeError: Value passed to parameter 'a' has DataType int64 not in list of allowed values: float1

报错:
TypeError: Value passed to parameter 'a' has DataType int64 not in list of allowed values: float16, float32, float64, int32, complex64, complex128

原因

 

1.4.0版本 默认int64

代码内容:

改正 定义符合 格式

发布了354 篇原创文章 · 获赞 163 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/qq_41856814/article/details/103468717