How to get PyCharm to evaluate tenorflow.contrib LazyLoader so that it automatically terminates?

Python novice here ...

If I import only the TensorFlow root package, autocompletion does not work for tf.contribdue to the fact that this module is loaded via LazyLoader:

enter image description here

However, if I import tensorflow.contrib.learn, then PyCharm knows how to automatically complete it:

enter image description here

How can I only import tensorflow as tf, and PyCharm knows how to automatically complete its properties without having to import each thing separately?

I am using PyCharm 2017.2.3 (Community Edition)

+6
source share

All Articles