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.
'module' object has no attribute 'contrib'
原文地址:https://www.cnblogs.com/2008nmj/p/9043253.html
时间: 2024-08-02 06:15:20