<p dir="auto">Please go to Stack Overflow for help and support:</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">https://stackoverflow.com/questions/tagged/tensorflow</a></p>
<p dir="auto">If you open a GitHub issue, here is our policy:</p>
<ol dir="auto">
<li>It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).</li>
<li>The form below must be filled out.</li>
<li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li>
</ol>
<p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p>
<hr>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Ubuntu 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: pip install tensorflow-nightly-gpu</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.10</li>
<li><strong>Python version</strong>:  2.7</li>
<li><strong>Bazel version (if compiling from source)</strong>:</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:</li>
<li><strong>CUDA/cuDNN version</strong>:</li>
<li><strong>GPU model and memory</strong>:</li>
<li><strong>Exact command to reproduce</strong>:<br>
import tensorflow as tf<br>
You can collect some of this information using our environment capture script:</li>
</ul>
<p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p>
<p dir="auto">You can obtain the TensorFlow version with</p>
<p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<p dir="auto">ttTraceback (most recent call last):<br>
File "", line 1, in <br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/<strong>init</strong>.py", line 22, in <br>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 81, in <br>
from tensorflow.python import keras<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/<strong>init</strong>.py", line 24, in <br>
from tensorflow.python.keras import activations<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/activations/<strong>init</strong>.py", line 22, in <br>
from tensorflow.python.keras._impl.keras.activations import elu<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/_impl/keras/<strong>init</strong>.py", line 21, in <br>
from tensorflow.python.keras._impl.keras import activations<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/_impl/keras/activations.py", line 23, in <br>
from tensorflow.python.keras._impl.keras import backend as K<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/_impl/keras/backend.py", line 38, in <br>
from tensorflow.python.layers import base as tf_base_layers<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 25, in <br>
from tensorflow.python.keras.engine import base_layer<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/engine/<strong>init</strong>.py", line 21, in <br>
from tensorflow.python.keras.engine.base_layer import InputSpec<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 33, in <br>
from tensorflow.python.keras import backend<br>
File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/backend/<strong>init</strong>.py", line 22, in <br>
from tensorflow.python.keras._impl.keras.backend import abs<br>
ImportError: cannot import name abs</p>
<p dir="auto">As of today (2018-06-09), the reproduction steps are:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip install -U tf-nightly"><pre class="notranslate">pip install -U tf-nightly</pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span></pre></div>
<p dir="auto">The error stack looks like:</p>
<blockquote>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/<strong>init</strong>.py in ()<br>
20<br>
21 # pylint: disable=g-bad-import-order<br>
---&gt; 22 from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import<br>
23 from . import app<br>
24 from . import bitwise</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/<strong>init</strong>.py in ()<br>
79 # Bring in subpackages.<br>
80 from tensorflow.python import data<br>
---&gt; 81 from tensorflow.python import keras<br>
82 from tensorflow.python.estimator import estimator_lib as estimator<br>
83 from tensorflow.python.feature_column import feature_column_lib as feature_column</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/<strong>init</strong>.py in ()<br>
22 from <strong>future</strong> import print_function<br>
23<br>
---&gt; 24 from tensorflow.python.keras import activations<br>
25 from tensorflow.python.keras import applications<br>
26 from tensorflow.python.keras import backend</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/activations/<strong>init</strong>.py in ()<br>
20<br>
21 # Activation functions.<br>
---&gt; 22 from tensorflow.python.keras._impl.keras.activations import elu<br>
23 from tensorflow.python.keras._impl.keras.activations import hard_sigmoid<br>
24 from tensorflow.python.keras._impl.keras.activations import linear</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/<strong>init</strong>.py in ()<br>
19 from <strong>future</strong> import print_function<br>
20<br>
---&gt; 21 from tensorflow.python.keras._impl.keras import activations<br>
22 from tensorflow.python.keras._impl.keras import applications<br>
23 from tensorflow.python.keras._impl.keras import backend</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/activations.py in ()<br>
21 import six<br>
22<br>
---&gt; 23 from tensorflow.python.keras._impl.keras import backend as K<br>
24 from tensorflow.python.keras._impl.keras.utils.generic_utils import deserialize_keras_object<br>
25 from tensorflow.python.layers.base import Layer</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/backend.py in ()<br>
35 from tensorflow.python.framework import ops<br>
36 from tensorflow.python.framework import sparse_tensor<br>
---&gt; 37 from tensorflow.python.layers import base as tf_base_layers<br>
38 from tensorflow.python.ops import array_ops<br>
39 from tensorflow.python.ops import clip_ops</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/layers/base.py in ()<br>
23 from tensorflow.python.framework import dtypes<br>
24 from tensorflow.python.framework import ops<br>
---&gt; 25 from tensorflow.python.keras.engine import base_layer<br>
26 from tensorflow.python.ops import variable_scope as vs<br>
27 from tensorflow.python.ops import variables as tf_variables</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/engine/<strong>init</strong>.py in ()<br>
19 from <strong>future</strong> import print_function<br>
20<br>
---&gt; 21 from tensorflow.python.keras.engine.base_layer import InputSpec<br>
22 from tensorflow.python.keras.engine.base_layer import Layer<br>
23 from tensorflow.python.keras.engine.input_layer import Input</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/engine/base_layer.py in ()<br>
31 from tensorflow.python.framework import tensor_shape<br>
32 from tensorflow.python.framework import tensor_util<br>
---&gt; 33 from tensorflow.python.keras import backend<br>
34 from tensorflow.python.keras import constraints<br>
35 from tensorflow.python.keras import initializers</p>
<p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/backend/<strong>init</strong>.py in ()<br>
20<br>
21 # pylint: disable=redefined-builtin<br>
---&gt; 22 from tensorflow.python.keras._impl.keras.backend import abs<br>
23 from tensorflow.python.keras._impl.keras.backend import all<br>
24 from tensorflow.python.keras._impl.keras.backend import any</p>
<p dir="auto">ImportError: cannot import name 'abs'</p>
</blockquote>
<p dir="auto">Note that the same error does <em>not</em> happen in tensorflow 1.8.0 or 1.9.0rc0.</p>