运行环境
- Windows 10
- Python3.6
- Tensorflow 1.9.0
错误代码
tf.add_to_collection('losses', tf.contrib.layers.l2_regularizer(regularizer)(w))
出现错误
tensorflow.python.framework.errors_impl.NotFoundError: D:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\contrib\data\python\ops...._dataset_ops.so not found
解决方法
到tensorflow/contrib/data目录下删除**_dataset_ops.so**