解决: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

原因

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

1.4.0版本 默认int64

代码内容:

解决: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: float1