AttributeError: module 'tensorflow.contrib.layers' has no attribute 'group_norm'

group norm 这个模块是在normalization.py文件里面定义的(https://github.com/tensorflow/tensorflow/blob/r1.8/tensorflow/contrib/layers/python/layers/normalization.py)
我的tensorflow版本是1.3.0,没有这个文件,所以报了这个错误。解决方法:pip install tensorflow==1.8.0

发布了131 篇原创文章 · 获赞 128 · 访问量 21万+

猜你喜欢

转载自blog.csdn.net/Valieli/article/details/103959647