Reputation: 1768
I am using Pycharm2017.3.3. I have statements:
import tensorflow as tf
import tensorflow.contrib.eager as tfe
When I want to use the components of the tfe
, Pycharm is not going to give me any hints. But tf
's auto-completion is working correctly.
I also tried the same two import statements using IPython3. And it turns out that all the components of tfe
are correctly listed.
Upvotes: 1
Views: 664
Reputation: 23484
Pycharm is doing everythings fine.
import tensoflow as tf
works ok because it has __init__.py
and every reference exists there:
from tensorflow.python import * # mostly this make it visible
On the other hand tensorflow.contrib.eager
does not contain any __init__.py
file where you can find references.
And you should probably be doing import as this:
from tensorflow.contrib.eager.python import tfe
Upvotes: 3