title: In Tensorflow, how can I rename a certain operation name?
body: <p>I think this question may sound weird. Let's say, there is a tensor <code>a</code>.</p>
  
  <pre><code>x = tf.placeholder(tf.float32, [None, 2400], name="x")
  y = tf.placeholder(tf.float32, [None, 2400], name="y")
  a = tf.add(x, y, name="a")
  </code></pre>
  
  <p>Is there an efficient way to refer <code>a</code> with a different name, like <code>out</code>?
  I am thinking a dummy operation like</p>
  
  <pre><code>b = tf.add(a, 0, name="out")
  </code></pre>
  
  <p>I am asking this because I am trying different network architectures, and regardless of architectures, I would like to access the output tensor with a consistent name like</p>
  
  <pre><code>tf.get_default_graph().get_tensor_by_name("out:0")`
  </code></pre>
  
  <p>For now, output tensors are depending on architectures like <code>fc1/fc1wb:0</code> or <code>fc2/fc2wb:0</code>. How can I wrap the final op with a certain name?</p>