title: How can I rename the input tensor name of an op in Tensorflow?
body: <p>My graph definition before removing the dropout layers looks like this :</p>
  
  <pre><code>fc6/BiasAdd : BiasAdd ( [u'fc6/Conv2D', u'fc6/biases/read'] )
  fc6/Relu : Relu ( [u'fc6/BiasAdd'] )
  dropout/keep_prob : Const ( [] )
  dropout/Shape : Shape ( [u'fc6/Relu'] )
  dropout/random_uniform/min : Const ( [] )
  dropout/random_uniform/max : Const ( [] )
  dropout/random_uniform/RandomUniform : RandomUniform ( [u'dropout/Shape'] )
  dropout/random_uniform/sub : Sub ( [u'dropout/random_uniform/max', u'dropout/random_uniform/min'] )
  dropout/random_uniform/mul : Mul ( [u'dropout/random_uniform/RandomUniform', u'dropout/random_uniform/sub'] )
  dropout/random_uniform : Add ( [u'dropout/random_uniform/mul', u'dropout/random_uniform/min'] )
  dropout/add : Add ( [u'dropout/keep_prob', u'dropout/random_uniform'] )
  dropout/Floor : Floor ( [u'dropout/add'] )
  dropout/Inv : Inv ( [u'dropout/keep_prob'] )
  dropout/mul : Mul ( [u'fc6/Relu', u'dropout/Inv'] )
  dropout/mul_1 : Mul ( [u'dropout/mul', u'dropout/Floor'] )
  fc7/weights : Const ( [] )
  fc7/weights/read : Identity ( [u'fc7/weights'] )
  fc7/Conv2D : Conv2D ( [u'dropout/mul_1', u'fc7/weights/read'] )
  </code></pre>
  
  <p>in format <code>node.name : node.type node.input</code></p>
  
  <p>After removing the dropout layers, I must find out how can I change the input tensor name of a specific layer. After removing dropout layers the graph looks like this :</p>
  
  <pre><code>fc6/BiasAdd : BiasAdd ( [u'fc6/Conv2D', u'fc6/biases/read'] )
  fc6/Relu : Relu ( [u'fc6/BiasAdd'] )
  fc7/weights : Const ( [] )
  fc7/weights/read : Identity ( [u'fc7/weights'] )
  fc7/Conv2D : Conv2D ( [u'dropout/mul_1', u'fc7/weights/read'] )
  </code></pre>
  
  <p>But, as you can see the <code>fc7/Conv2D</code> operation still expects <code>dropout/mul_1</code> as an input. Because of that I am getting this error :</p>
  
  <p><strong>ValueError: graph_def is invalid at node u'fc7/Conv2D': Input tensor 'dropout/mul_1:0' not found in graph_def..</strong></p>
  
  <p>I want to change expected input tensor name of the node - operation to <code>fc6/BiasAdd</code>, for the network to be valid. Is there a way to do that?</p>