错误:AttributeError: module 'tensorflow.keras.xxxx' has no attribute 'xxxx'

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

tensorflow api

推荐的版本

tensorflow1.15

tensorflow>=2.6

posted @ 2022-07-30 10:51  slantingsun  阅读(132)  评论(0)    收藏  举报