<p dir="auto"><em>Please make sure that this is a bug. 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:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS 10.14.4</li>
<li>TensorFlow installed from (source or binary): Binary from pip/PyPi</li>
<li>TensorFlow version (use command below): 1.13.1</li>
<li>Python version: 3.7</li>
<li>CUDA/cuDNN version: CPU only</li>
<li>GPU model and memory: MacPro integrated</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with<br>
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<p dir="auto"><strong>Describe the current behavior</strong><br>
I have previously running code that explodes on import prior to any runtime execution. Reports the error above.</p>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
This library needs to run and not choke on its own imports.</p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<p dir="auto"><strong>Other info / logs</strong><br>
Using TensorFlow backend.<br>
Traceback (most recent call last):<br>
File "/Users/raymond/Depot/ai-worker/duplicate_ai/test.py", line 1, in <br>
from model import SiameseDream<br>
File "/Users/raymond/Depot/ai-worker/duplicate_ai/model.py", line 1, in <br>
import keras.backend as K<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/keras/<strong>init</strong>.py", line 3, in <br>
from . import utils<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/keras/utils/<strong>init</strong>.py", line 6, in <br>
from . import conv_utils<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/keras/utils/conv_utils.py", line 9, in <br>
from .. import backend as K<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/keras/backend/<strong>init</strong>.py", line 89, in <br>
from .tensorflow_backend import *<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/keras/backend/tensorflow_backend.py", line 5, in <br>
import tensorflow as tf<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/tensorflow/<strong>init</strong>.py", line 24, in <br>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 52, in <br>
from tensorflow.core.framework.graph_pb2 import *<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 15, in <br>
from tensorflow.core.framework import node_def_pb2 as tensorflow_dot_core_dot_framework_dot_node__def__pb2<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/tensorflow/core/framework/node_def_pb2.py", line 15, in <br>
from tensorflow.core.framework import attr_value_pb2 as tensorflow_dot_core_dot_framework_dot_attr__value__pb2<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/tensorflow/core/framework/attr_value_pb2.py", line 15, in <br>
from tensorflow.core.framework import tensor_pb2 as tensorflow_dot_core_dot_framework_dot_tensor__pb2<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/tensorflow/core/framework/tensor_pb2.py", line 15, in <br>
from tensorflow.core.framework import resource_handle_pb2 as tensorflow_dot_core_dot_framework_dot_resource__handle__pb2<br>
File "/Users/raymond/env/ai-worker/lib/python3.7/site-packages/tensorflow/core/framework/resource_handle_pb2.py", line 22, in <br>
serialized_pb=_b('\n/tensorflow/core/framework/resource_handle.proto\x12\ntensorflow"r\n\x13ResourceHandleProto\x12\x0e\n\x06\x64\x65vice\x18\x01 \x01(\t\x12\x11\n\tcontainer\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x11\n\thash_code\x18\x04 \x01(\x04\x12\x17\n\x0fmaybe_type_name\x18\x05 \x01(\tBn\n\x18org.tensorflow.frameworkB\x0eResourceHandleP\x01Z=github.com/tensorflow/tensorflow/tensorflow/go/core/framework\xf8\x01\x01\x62\x06proto3')<br>
TypeError: <strong>init</strong>() got an unexpected keyword argument 'serialized_options'</p>
<p dir="auto">Would you like to <a href="https://github.com/tensorflow/tensorflow/blob/31849e0a44a1c9c99c4524a65c9ee90e80c41499/tensorflow/core/common_runtime/device.h#L35">replace any double quotes</a> by <a href="http://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename" rel="nofollow">angle brackets around file names for include statements</a>?</p>