<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto">System information</p>
<p dir="auto">OS : Windows 10<br>
TensorFlow installed from (source or binary): from pip<br>
TensorFlow version: 1.11.0<br>
Python version: 3.6<br>
Installed using virtualenv? pip? conda?: conda<br>
Bazel version (if compiling from source): No<br>
GCC/Compiler version (if compiling from source):<br>
CUDA/cuDNN version: 10<br>
GPU model and memory: Nvidia 1050Ti</p>
<p dir="auto"><strong>Describe the problem</strong><br>
Recently I tried updating my tensor flow and later on, my tensorflow-gpu stopped working.<br>
Now I have downgraded to 1.11.0 but then still my tensorflow-gpu is not working.</p>
<p dir="auto">nvidia-smi is working fine.<br>
+-----------------------------------------------------------------------------+<br>
| NVIDIA-SMI 416.34       Driver Version: 416.34       CUDA Version: 10.0     |<br>
|-------------------------------+----------------------+----------------------+<br>
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |<br>
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |<br>
|===============================+======================+======================|<br>
|   0  GeForce GTX 105... WDDM  | 00000000:01:00.0 Off |                  N/A |<br>
| N/A   48C    P8    N/A /  N/A |     78MiB /  4096MiB |      0%      Default |<br>
+-------------------------------+----------------------+----------------------+</p>
<p dir="auto">+-----------------------------------------------------------------------------+<br>
| Processes:                                                       GPU Memory |<br>
|  GPU       PID   Type   Process name                             Usage      |<br>
|==================================================|<br>
|  No running processes found                                                 |<br>
+-----------------------------------------------------------------------------+</p>
<p dir="auto">tf.test.is_gpu_available(<br>
cuda_only=False,<br>
min_cuda_compute_capability=None<br>
)</p>
<p dir="auto">I ran this, its coming false</p>
<p dir="auto">then ,<br>
I ran this sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))<br>
Device mapping: no known devices.<br>
2018-11-26 17:27:10.277030: I tensorflow/core/common_runtime/direct_session.cc:291] Device mapping:</p>
<p dir="auto">it's coming empty, I read lot of threads usually people had error with cuda, by installing that it worked for lot of people.</p>
<p dir="auto">But then in my case things were working fine earlier, now it got messed up and cuda is installed properly.</p>
<p dir="auto">why should I do?</p>
<p dir="auto">Hi:<br>
my program have bug in these code line:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="           word_embeddings = tf.scatter_nd_update(var_output, error_word_f, sum_all)
            word_embeddings_2 = tf.nn.dropout(word_embeddings, self.dropout_pl)"><pre class="notranslate"><code class="notranslate">           word_embeddings = tf.scatter_nd_update(var_output, error_word_f, sum_all)
            word_embeddings_2 = tf.nn.dropout(word_embeddings, self.dropout_pl)
</code></pre></div>
<h1 dir="auto">The error hint as follows:<br>
ValueError: Tensor conversion requested dtype float32_ref for Tensor with dtype float32: 'Tensor("dropout:0", shape=(), dtype=float32)</h1>
<p dir="auto">it looks  like word_embeddings 's dtype is float32_ref but actual the function tf.nn.dropout  need word_embeddings dtype float32  ,how can i convert word_embeddings's dtype float32_ref to float32 before run  tf.nn.dropout(word_embeddings, self.dropout_pl)?</p>