How to force PyCharm to evaluate tensorflow.contrib LazyLoader so it auto-completes?

Viewed 477

Python novice here...

If I only import TensorFlow's root package, auto-complete doesn't seem to work for tf.contrib due to that module being loaded through LazyLoader:

enter image description here

However, if I import tensorflow.contrib.learn, then PyCharm knows how to auto-complete it from there:

enter image description here

How can I only import tensorflow as tf and have PyCharm know how to auto-complete its properties without me having to import each thing individually?

I'm using PyCharm 2017.2.3 (Community Edition)

0 Answers
Related