<p dir="auto">import tensorflow as tf<br>
Traceback (most recent call last):</p>
<p dir="auto">File "", line 1, in <br>
import tensorflow as tf</p>
<p dir="auto">File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_<em>init</em>_.py", line 22, in <br>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import</p>
<p dir="auto">File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow</p>
<p dir="auto">File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <br>
raise ImportError(msg)</p>
<p dir="auto">ImportError: Traceback (most recent call last):<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper<br>
return importlib.import_module(mname)<br>
File "C:\ProgramData\Anaconda3\lib\importlib_<em>init</em>_.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
File "", line 985, in _gcd_import<br>
File "", line 968, in _find_and_load<br>
File "", line 957, in _find_and_load_unlocked<br>
File "", line 666, in _load_unlocked<br>
File "", line 577, in module_from_spec<br>
File "", line 938, in create_module<br>
File "", line 222, in _call_with_frames_removed<br>
ImportError: DLL load failed with error code -1073741795</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper<br>
return importlib.import_module('<em>pywrap_tensorflow_internal')<br>
File "C:\ProgramData\Anaconda3\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
ImportError: No module named '_pywrap_tensorflow_internal'</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://www.tensorflow.org/install/install_sources#common_installation_problems" rel="nofollow">https://www.tensorflow.org/install/install_sources#common_installation_problems</a></p>
<p dir="auto">for some common reasons and solutions.  Include the entire stack trace<br>
above this error message when asking for help.</p>
<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>: Linux Ubuntu 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.6.0-rc1</li>
<li><strong>Python version</strong>: 2.7</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.11.0</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: 5.4</li>
<li><strong>CUDA/cuDNN version</strong>: 9.1/7.0</li>
<li><strong>GPU model and memory</strong>: Tesla k80 (11441MiB)</li>
<li><strong>Exact command to reproduce</strong>: python cifar10_train.py</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I used timeline to profile the time taken by each operation of the standard cifar10 model available in tensorflow/models repo. After looking at the logfile, it looks like logs of some of the operations are duplicated i.e. it looks like some of the operations in the graph are ran multiple times over the single run of the complete graph. For example, Operation "gradients/conv2/Conv2D_grad/Conv2DBackpropFilter" (link to logfile : <a href="https://gist.github.com/xilenteyex/d54305e0448e1aa3d878872c45b8ed3a#file-timeline-1-json-L2270">https://gist.github.com/xilenteyex/d54305e0448e1aa3d878872c45b8ed3a#file-timeline-1-json-L2270</a>) is logged multiple times. Is this some sort of bug or am I missing something?</p>
<p dir="auto">Thanks a lot for looking into this issue!</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">cifar10 example : <a href="https://github.com/tensorflow/models/tree/master/tutorials/image/cifar10">https://github.com/tensorflow/models/tree/master/tutorials/image/cifar10</a><br>
here is a the link to my modified version of cifar10_train.py in which I added logging :<br>
<a href="https://gist.github.com/xilenteyex/b6fab3a5abdb65bf674aa7d0a4ec4b5c">https://gist.github.com/xilenteyex/b6fab3a5abdb65bf674aa7d0a4ec4b5c</a><br>
one of the sample log files is : <a href="https://gist.github.com/xilenteyex/d54305e0448e1aa3d878872c45b8ed3a">https://gist.github.com/xilenteyex/d54305e0448e1aa3d878872c45b8ed3a</a></p>