AttributeError: type object ‘IteratorBase‘ has no attribute ‘from_structure‘已解决

Recently, I encountered this problem when running the point cloud semantic segmentation project RandLA-Net, and it has now been solved.

AttributeError: type object 'IteratorBase' has no attribute 'from_structure'

Property error, no from_structure property in type object 'IteratorBase'

The reason for this problem: In TensorFlow2.x version, the class corresponding to the IteratorBase object does not encapsulate the from_structure attribute. So the error is caused.

Solution: Install TensorFlow1.x. After I installed TensorFlow1.11, this problem did not occur again.

Guess you like

Origin blog.csdn.net/m0_62648611/article/details/131732164