You can get a tensor by name with tf.get_default_graph().get_tensor_by_name(\"tensor_name:0\")
tf.get_default_graph().get_tensor_by_name(\"tensor_name:0\")
But can you get an operation, such as Optimizer.min
Optimizer.min
You can use the tf.Graph.get_operation_by_name() method to get a tf.Operation by name. For example, to get an operation called "enqueue" from the default graph:
tf.Operation
"enqueue"
op = tf.get_default_graph().get_operation_by_name("enqueue")