<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code</strong>: yes</li>
<li><strong>OS Platform and Distribution</strong>: Linux Ubuntu 16.04</li>
<li><strong>TensorFlow installed from</strong>: source</li>
<li><strong>TensorFlow version</strong>: v1.2.0-rc0-312-g0b72359 1.2.0-rc0</li>
<li><strong>Bazel version</strong>: 0.4.5</li>
<li><strong>CUDA/cuDNN version</strong>: 8.0/5.1</li>
<li><strong>GPU model and memory</strong>: NVIDIA GeForce GTX 750 Ti</li>
</ul>
<p dir="auto">After recompiling TensorFlow I got this strange log message.<br>
I doesn't seem to affect any of the computation.<br>
All of the other tools behave as expected.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING:tensorflow:Error encountered when serializing LAYER_NAME_UIDS.
Type is unsupported, or the types of the items don't match field type in CollectionDef.
'dict' object has no attribute 'name'"><pre class="notranslate"><code class="notranslate">WARNING:tensorflow:Error encountered when serializing LAYER_NAME_UIDS.
Type is unsupported, or the types of the items don't match field type in CollectionDef.
'dict' object has no attribute 'name'
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;AI_control_4layer.py&quot;, line 218, in &lt;module&gt;
    writer)
  File &quot;/home/longfei/Repository/drl_navigation/saved_neural_qlearning.py&quot;, line 61, in __init__
    self.create_variables()
  File &quot;/home/longfei/Repository/drl_navigation/saved_neural_qlearning.py&quot;, line 148, in create_variables
    self.train_op = self.optimizer.apply_gradients(gradients)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py&quot;, line 412, in apply_gradients
    self._create_slots(var_list)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/rmsprop.py&quot;, line 101, in _create_slots
    self._get_or_make_slot(v, val_rms, &quot;rms&quot;, self._name)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py&quot;, line 639, in _get_or_make_slot
    named_slots[var] = slot_creator.create_slot(var, val, op_name)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/slot_creator.py&quot;, line 101, in create_slot
    return _create_slot_var(primary, val, '')
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/slot_creator.py&quot;, line 55, in _create_slot_var
    slot = variable_scope.get_variable(scope, initializer=val, trainable=False)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py&quot;, line 988, in get_variable
    custom_getter=custom_getter)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py&quot;, line 890, in get_variable
    custom_getter=custom_getter)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py&quot;, line 348, in get_variable
    validate_shape=validate_shape)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py&quot;, line 333, in _true_getter
    caching_device=caching_device, validate_shape=validate_shape)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py&quot;, line 684, in _get_single_variable
    validate_shape=validate_shape)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variables.py&quot;, line 226, in __init__
    expected_shape=expected_shape)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variables.py&quot;, line 322, in _init_from_args
    name=name)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/state_ops.py&quot;, line 178, in variable_op_v2
    shared_name=shared_name)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_state_ops.py&quot;, line 708, in _variable_v2
    name=name)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py&quot;, line 763, in apply_op
    op_def=op_def)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py&quot;, line 2398, in create_op
    self._add_op(ret)
  File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py&quot;, line 2099, in _add_op
    &quot;is already used&quot; % op.name)
ValueError: cannot add op with name q_network/W_conv1/RMSProp as that name is already used"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "AI_control_4layer.py", line 218, in &lt;module&gt;
    writer)
  File "/home/longfei/Repository/drl_navigation/saved_neural_qlearning.py", line 61, in __init__
    self.create_variables()
  File "/home/longfei/Repository/drl_navigation/saved_neural_qlearning.py", line 148, in create_variables
    self.train_op = self.optimizer.apply_gradients(gradients)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py", line 412, in apply_gradients
    self._create_slots(var_list)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/rmsprop.py", line 101, in _create_slots
    self._get_or_make_slot(v, val_rms, "rms", self._name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py", line 639, in _get_or_make_slot
    named_slots[var] = slot_creator.create_slot(var, val, op_name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/slot_creator.py", line 101, in create_slot
    return _create_slot_var(primary, val, '')
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/slot_creator.py", line 55, in _create_slot_var
    slot = variable_scope.get_variable(scope, initializer=val, trainable=False)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 988, in get_variable
    custom_getter=custom_getter)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 890, in get_variable
    custom_getter=custom_getter)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 348, in get_variable
    validate_shape=validate_shape)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 333, in _true_getter
    caching_device=caching_device, validate_shape=validate_shape)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 684, in _get_single_variable
    validate_shape=validate_shape)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variables.py", line 226, in __init__
    expected_shape=expected_shape)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variables.py", line 322, in _init_from_args
    name=name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/state_ops.py", line 178, in variable_op_v2
    shared_name=shared_name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_state_ops.py", line 708, in _variable_v2
    name=name)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op
    op_def=op_def)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2398, in create_op
    self._add_op(ret)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2099, in _add_op
    "is already used" % op.name)
ValueError: cannot add op with name q_network/W_conv1/RMSProp as that name is already used
</code></pre></div>