AttributeError: module 'tensorflow.contrib' has no attribute 'l2_regularizer'

这种错误一般是tensorflow中的类或对象指定错误。

第十一行

第十一行在contrib.后加上layers.

猜你喜欢

转载自blog.csdn.net/weixin_36670529/article/details/88100133