name_scope

dragon.vm.tensorflow.name_scope(name)[source]

Context-manager to nest the name as prefix for operations.

Examples:

with tf.name_scope('my_scope'):
    x = tf.constant(1)
print(x.name)
Parameters:
  • name (str) The prefix name.
Returns:

str The current nesting prefix.