As far as I know, you cannot rename the tensor after creation.
However, you can use additional "no-op" operations (as you said):
for tf.Tensor : tf.identity(input_tensor, name='your_new_name')
for operation: tf.group(input_operation, name='your_new_name')
After that, you can call input_tensor with:
graph = tf.get_default_graph() graph.get_tensor_by_name('your_new_name:0')
Or input_operation with:
graph = tf.get_default_graph() graph.get_operation_by_name('your_new_name')
source share