错误:AttributeError: module 'tensorflow.keras.xxxx' has no attribute 'xxxx'
因为tensorflow前后版本api变化大,常常会出现某某module不存在,推荐使用官方文档去查找api并按照特定的版本

推荐的版本
tensorflow1.15
tensorflow>=2.6
因为tensorflow前后版本api变化大,常常会出现某某module不存在,推荐使用官方文档去查找api并按照特定的版本

推荐的版本
tensorflow1.15
tensorflow>=2.6