Python报错:‘EagerTensor‘ object has no attribute ‘reshape‘

在使用R+Python时,发现python代码部分报错:‘EagerTensor‘ object has no attribute ‘reshape‘

如何解决?

使用np.array 转换为array,再进行reshape

Python报错:‘EagerTensor‘ object has no attribute ‘reshape‘_第1张图片

参考:

‘EagerTensor‘ object has no attribute ‘reshape‘处理图像数据_eagertensor' object_加油胖虎的博客-CSDN博客 

你可能感兴趣的:(R编程练习,笔记,python,1024程序员节)