name_scope

dragon.name_scope(name)[source]

Context-manager to nest the name prefix for operations.

Examples:

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

str – The current nesting prefix.