<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code:No</li>
<li>OS Platform and Distribution:Ubuntu 18.04.2</li>
<li>TensorFlow installed from:binary</li>
<li>TensorFlow version:tf-nightly-gpu 1.14.1.dev20190617</li>
<li>Python version:3.7</li>
<li>CUDA/cuDNN version:10.0</li>
<li>GPU model and memory:rtx 2070 8gb</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong><br>
cannot import anything from tensorflow.python.<br>
<strong>Describe the expected behavior</strong><br>
In tensorflow version 1.13 it works<br>
<strong>Code to reproduce the issue</strong><br>
from tensorflow.python import tf2 and i get Unresolved reference</p>
<p dir="auto">PyCharms doesn't provide suggestions for some of the TensorFlow imports. For example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from tensorflow.nn import rnn_cell
from tensorflow.keras import losses"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">nn</span> <span class="pl-k">import</span> <span class="pl-s1">rnn_cell</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">keras</span> <span class="pl-k">import</span> <span class="pl-s1">losses</span></pre></div>
<p dir="auto">In these cases, PyCharms doesn't provide suggestions for <code class="notranslate">rnn_cell</code> or <code class="notranslate">losses</code> members.</p>
<p dir="auto">A potential solution for the <code class="notranslate">rnn_cell</code> import is to put API tree under root of TensorFlow pip package instead of under <code class="notranslate">_api/v1</code> or <code class="notranslate">_api/v2</code>. However, this won't fix suggestions for <code class="notranslate">keras</code> import since <code class="notranslate">keras</code> API is in a different directory and we create an alias for it under <code class="notranslate">tensorflow</code>.</p>
<p dir="auto">This issue is a follow up from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="419031456" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/26502" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/26502/hovercard" href="https://github.com/tensorflow/tensorflow/issues/26502">#26502</a>.</p>