Attempt to convert a value (1.0) with an unsupported type (<class ‘numpy.float32’>) to a Tensor
问题处在tensorflow2.0
不支持numpy.float32
你的tensorflow
跟numpy
不匹配
解决方法:
重新安装numpy
,numpy
=1.16.4 版本不会出现这个问题。
Attempt to convert a value (1.0) with an unsupported type (<class ‘numpy.float32’>) to a Tensor
问题处在tensorflow2.0
不支持numpy.float32
你的tensorflow
跟numpy
不匹配
解决方法:
重新安装numpy
,numpy
=1.16.4 版本不会出现这个问题。