Problem solved, turns i had 2 tensorflow versions installed:
- When launching $python , it used 0.6 version(which didnt had contrib module)
- When launching $sudo python ,it had the latest 0.9 version and everything works as the documentation.
Problem solved, turns i had 2 tensorflow versions installed:
'module' object has no attribute 'contrib'
原文:https://www.cnblogs.com/2008nmj/p/9043253.html