Python中运行TensorFlow创建的模型时报错AttributeError: 'MirroredStrategy' object has no attribute 'distribute_datasets_from_function' 解决方法 解决方法 出现这个错误的时候,我的TensorFlow是2.3.0版本的,我将TensorFlow升级到2.6.0,且将TensorFlow-datasets升级到4.4.0版本,该错误消失。