Tensorflow.contrib is nomore included in tf's pacakge To use slim run this command >>> pip install --upgrade tf_slim and the add this in your script file >>> import tf_slim as slim >>> slim = slim '''==== "HappyCodding" ===='''