打开谷歌开源框架BERT,调试运行出现module 'tensorflow._api.v2.train' has no attribute 'Optimizer',有人知道怎么回事吗?
请检查 tensorflow 的版本,版本匹配问题。
函数没有写属性啊,你再检查一下代码,是否完整正确。